/* EDOS Notification System Styles */

.notification-container {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    max-width: min(520px, calc(100vw - 24px));
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.notification {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.16);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    overflow: hidden;
    animation: slideInTop 0.35s ease-out;
    transition: all 0.3s ease;
    border-left: 4px solid;
    border-top: 3px solid rgba(255,255,255,0.2);
}

.notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

/* Success Notification - Green background with white text */
.notification-success {
    background-color: #22c55e;
    border-left-color: #16a34a;
    color: white;
}

.notification-success .notification-icon {
    color: white;
}

.notification-success .notification-title {
    color: white;
}

.notification-success .notification-message {
    color: rgba(255, 255, 255, 0.95);
}

/* Error Notification - Red background with white text */
.notification-error {
    background-color: #ef4444;
    border-left-color: #dc2626;
    color: white;
}

.notification-error .notification-icon {
    color: white;
}

.notification-error .notification-title {
    color: white;
}

.notification-error .notification-message {
    color: rgba(255, 255, 255, 0.95);
}

/* Delete Notification - Red background with white text */
.notification-delete {
    background-color: #ef4444;
    border-left-color: #dc2626;
    color: white;
}

.notification-delete .notification-icon {
    color: white;
}

.notification-delete .notification-title {
    color: white;
}

.notification-delete .notification-message {
    color: rgba(255, 255, 255, 0.95);
}

/* Info Notification - Blue background with white text */
.notification-info {
    background-color: #3b82f6;
    border-left-color: #2563eb;
    color: white;
}

.notification-info .notification-icon {
    color: white;
}

.notification-info .notification-title {
    color: white;
}

.notification-info .notification-message {
    color: rgba(255, 255, 255, 0.95);
}

/* Warning Notification - Yellow/Orange background */
.notification-warning {
    background-color: #f59e0b;
    border-left-color: #d97706;
    color: white;
}

.notification-warning .notification-icon {
    color: white;
}

.notification-warning .notification-title {
    color: white;
}

.notification-warning .notification-message {
    color: rgba(255, 255, 255, 0.95);
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.notification-message {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.95;
}

.notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Animations */
@keyframes slideInTop {
    from {
        transform: translateY(-24px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutTop {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-container {
        top: 64px;
        left: 12px;
        right: 12px;
        transform: none;
        width: auto;
        max-width: none;
    }
    
    .notification {
        padding: 14px;
    }
    
    .notification-title {
        font-size: 13px;
    }
    
    .notification-message {
        font-size: 12px;
    }
}

/* Alternative style for login page notifications */
.login-notification {
    background: #22c55e;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-out;
}

.login-notification.error {
    background: #ef4444;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Special style for Academic section - Green text on white background */
.academic-notification {
    background: white;
    color: #22c55e;
    border: 2px solid #22c55e;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideDown 0.3s ease-out;
}

.academic-notification i {
    color: #22c55e;
    font-size: 16px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
