/* ------------------------- ALERT MESSAGES ------------------------- */
.content .alert {
    position: relative;
    padding: 14px 20px;
    margin: 0 auto 20px auto;
    max-width: 600px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    animation: slideInDown 0.3s ease-out;
    z-index: 1050;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-message {
    font-size: 0.85rem;
    line-height: 1.5;
    flex: 1;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.alert-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1);
}

.alert-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* ------------------------- ALERT TYPES ------------------------- */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.alert-success .alert-icon {
    color: #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 5px;
    font-size: 0.8rem;
}

.alert-danger .alert-icon {
    color: #dc3545;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.2);
}

.alert-info .alert-icon {
    color: #17a2b8;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.alert-warning .alert-icon {
    color: #ffc107;
}

/* ------------------------- ALERT STATES ------------------------- */
.alert.show {
    display: flex;
}



.alert.hidden {
    display: none;
}

/* ------------------------- RESPONSIVE ------------------------- */
@media (max-width: 768px) {
    .content .alert {
        margin: 0 0 15px 0;
        padding: 12px 16px;
        max-width: 100%;
    }

    .alert-message {
        font-size: 0.8rem;
    }

    .alert-icon {
        font-size: 1.1rem;
    }
}

/* ------------------------- AÇIK TEMA STİLLERİ ------------------------- */
[data-theme="light"] .content .alert {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .alert-success {
    background-color: #f0f9f4;
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-left: 4px solid #22c55e;
}

[data-theme="light"] .alert-success .alert-icon {
    color: #22c55e;
}

[data-theme="light"] .alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left: 4px solid #ef4444;
}

[data-theme="light"] .alert-danger .alert-icon {
    color: #ef4444;
}

[data-theme="light"] .alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-left: 4px solid #3b82f6;
}

[data-theme="light"] .alert-info .alert-icon {
    color: #3b82f6;
}

[data-theme="light"] .alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-left: 4px solid #eab308;
}

[data-theme="light"] .alert-warning .alert-icon {
    color: #eab308;
}

[data-theme="light"] .alert-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .alert-close:focus {
    outline: 2px solid rgba(0, 0, 0, 0.2);
    outline-offset: 2px;
}

/* ------------------------- DARK MODE SUPPORT (if needed) ------------------------- */
@media (prefers-color-scheme: dark) {
    .alert-success {
        background-color: rgba(40, 167, 69, 0.2);
        color: #90ee90;
    }

    .alert-danger {
        background-color: rgba(220, 53, 69, 0.2);
        color: #ff6b6b;
    }

    .alert-info {
        background-color: rgba(23, 162, 184, 0.2);
        color: #6ecce8;
    }

    .alert-warning {
        background-color: rgba(255, 193, 7, 0.2);
        color: #ffd700;
    }
}

