/**
 * ============================================================================
 * GLOBAL NOTIFICATION SYSTEM STYLES
 * ============================================================================
 * Professional toast notification styles for all pages
 */

/* ===== NOTIFICATION CONTAINER ===== */
.gt-notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999999 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    pointer-events: none;
}

@media (max-width: 768px) {
    .gt-notification-container {
        top: 70px;
        left: 10px;
        right: 10px;
        transform: none;
        max-width: calc(100% - 20px);
        width: auto;
        align-items: stretch;
    }
}

/* ===== NOTIFICATION CARD ===== */
.gt-notification {
    background: white;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #4CAF50;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    pointer-events: auto;
    cursor: pointer;
    min-width: 320px;
}

@media (max-width: 768px) {
    .gt-notification {
        padding: 16px 18px;
        min-width: unset;
        width: 100%;
        max-width: 100%;
    }
}

/* ===== NOTIFICATION STATES ===== */
.gt-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.gt-notification.hide {
    transform: translateX(120%);
    opacity: 0;
}

/* ===== NOTIFICATION TYPES ===== */
.gt-notification.success {
    border-left-color: #4CAF50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08) 0%, rgba(76, 175, 80, 0.03) 100%);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.gt-notification.error {
    border-left-color: #f44336;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.08) 0%, rgba(244, 67, 54, 0.03) 100%);
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.gt-notification.warning {
    border-left-color: #ff9800;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.08) 0%, rgba(255, 152, 0, 0.03) 100%);
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.gt-notification.info {
    border-left-color: #2196F3;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.08) 0%, rgba(33, 150, 243, 0.03) 100%);
    border: 1px solid rgba(33, 150, 243, 0.2);
}

/* ===== NOTIFICATION ICON ===== */
.gt-notification-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.gt-notification:hover .gt-notification-icon {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gt-notification-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

/* ===== ICON COLORS BY TYPE ===== */
.gt-notification.success .gt-notification-icon {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.gt-notification.error .gt-notification-icon {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.gt-notification.warning .gt-notification-icon {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.gt-notification.info .gt-notification-icon {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

/* ===== NOTIFICATION CONTENT ===== */
.gt-notification-content {
    flex: 1;
    min-width: 0;
}

.gt-notification-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .gt-notification-title {
        font-size: 14px;
    }
}

.gt-notification-message {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .gt-notification-message {
        font-size: 13px;
    }
}

/* ===== PROGRESS BAR ===== */
.gt-notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}

.gt-notification-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 6s linear;
    border-radius: 0 0 12px 12px;
}

.gt-notification.success .gt-notification-progress-bar {
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
}

.gt-notification.error .gt-notification-progress-bar {
    background: linear-gradient(90deg, #f44336 0%, #d32f2f 100%);
}

.gt-notification.warning .gt-notification-progress-bar {
    background: linear-gradient(90deg, #ff9800 0%, #f57c00 100%);
}

.gt-notification.info .gt-notification-progress-bar {
    background: linear-gradient(90deg, #2196F3 0%, #1976D2 100%);
}

/* ===== ANIMATIONS ===== */
@keyframes notificationSlideIn {
    0% {
        transform: translateX(120%);
        opacity: 0;
    }
    60% {
        transform: translateX(-5%);
        opacity: 1;
    }
    80% {
        transform: translateX(2%);
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.gt-notification.show {
    animation: notificationSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}
