/**
 * ไฟล์ CSS สำหรับการแจ้งเตือน (notification)
 */

/* คอนเทนเนอร์หลักสำหรับการแจ้งเตือน */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    width: 100%;
}

/* รูปแบบการแจ้งเตือน */
.notification {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    overflow: hidden;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    padding: 15px;
    border-left: 4px solid #3b82f6; /* สีน้ำเงิน (blue-500) */
}

/* รูปแบบการแจ้งเตือนที่แสดงอยู่ */
.notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* ไอคอนการแจ้งเตือน */
.notification-icon {
    margin-right: 12px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* เนื้อหาการแจ้งเตือน */
.notification-content {
    flex: 1;
}

/* หัวข้อการแจ้งเตือน */
.notification-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: #1f2937; /* gray-800 */
}

/* ข้อความการแจ้งเตือน */
.notification-message {
    font-size: 14px;
    color: #4b5563; /* gray-600 */
}

/* ปุ่มปิดการแจ้งเตือน */
.notification-close {
    cursor: pointer;
    font-size: 18px;
    color: #9ca3af; /* gray-400 */
    margin-left: 8px;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #6b7280; /* gray-500 */
}

/* สีสำหรับประเภทการแจ้งเตือนต่างๆ */
.notification.success {
    border-left-color: #10b981; /* green-500 */
}

.notification.error {
    border-left-color: #ef4444; /* red-500 */
}

.notification.warning {
    border-left-color: #f59e0b; /* amber-500 */
}

.notification.info {
    border-left-color: #3b82f6; /* blue-500 */
}

/* สีไอคอนตามประเภทการแจ้งเตือน */
.notification.success .notification-icon {
    color: #10b981; /* green-500 */
}

.notification.error .notification-icon {
    color: #ef4444; /* red-500 */
}

.notification.warning .notification-icon {
    color: #f59e0b; /* amber-500 */
}

.notification.info .notification-icon {
    color: #3b82f6; /* blue-500 */
}