/* ===== MODERN ADMIN UI ENHANCEMENTS ===== */

/* Modern Button Styles */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm, 10px);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #f8fafc);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Primary Button */
.primary-button {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: #6366f1;
    color: white;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.3);
}

.primary-button:hover {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    border-color: #818cf8;
}

/* Info Button */
.info-button {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    border-color: #0ea5e9;
    color: white;
    box-shadow: 0 4px 6px rgba(14, 165, 233, 0.3);
}

.info-button:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #22d3ee 100%);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

/* Warning Button */
.warning-button {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    border-color: #f59e0b;
    color: white;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3);
}

.warning-button:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f87171 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Delete Button */
.delete-button {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    color: white;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
}

.delete-button:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Ghost Button */
.ghost-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Button Sizes */
.button-small {
    padding: 5px 10px;
    font-size: 12px;
    min-height: 30px;
}

.button-large {
    padding: 10px 20px;
    font-size: 15px;
    min-height: 42px;
}

/* Improved Card Styles */
.dialogue-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius, 16px);
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dialogue-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    border-color: rgba(99, 102, 241, 0.4);
}

/* Stat Cards */
.stat-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius, 16px);
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

.stat-card--success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.1) 100%);
    border-color: rgba(34, 197, 94, 0.4);
}

.stat-card--muted {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.15) 0%, rgba(100, 116, 139, 0.1) 100%);
    border-color: rgba(148, 163, 184, 0.4);
}

/* Form Improvements */
.input-prompt-field,
.view-control-select {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: var(--radius-sm, 10px);
    padding: 10px 14px;
    color: var(--text-primary, #f8fafc);
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-prompt-field:focus,
.view-control-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(15, 23, 42, 0.95);
}

.input-prompt-field::placeholder {
    color: rgba(203, 213, 225, 0.5);
}

/* Modal Improvements */
.modal-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: var(--radius-lg, 24px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 90%;
    width: auto;
}

/* Modal size variants */
.modal-content.modal-small {
    max-width: 400px;
}

.modal-content.modal-medium {
    max-width: 600px;
}

.modal-content.modal-large {
    max-width: 900px;
}

.modal-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding: 20px 24px;
}

.modal-body {
    padding: 24px;
}

/* Loading Overlay */
.loading-overlay {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Toast Notifications */
.notification-toast {
    border-radius: var(--radius, 16px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .button {
        padding: 7px 12px;
        font-size: 12px;
    }

    .button-small {
        padding: 5px 8px;
        font-size: 11px;
    }

    .dialogue-card {
        padding: 16px;
    }

    .stat-card {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .button {
        width: 100%;
        justify-content: center;
    }

    .dialogue-actions {
        flex-direction: column;
        gap: 8px;
    }

    .dialogue-actions .button {
        width: 100%;
    }
}

@media (max-width: 400px) {

    /* Account Management & Dialogue Pages */
    .dialogue-page-wrapper {
        padding: 16px 12px 40px;
    }

    .dialogue-page-header {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .page-title {
        font-size: 24px;
    }

    .page-subtitle {
        font-size: 12px;
    }

    .dialogue-header-actions {
        gap: 6px;
    }

    .dialogue-header-actions .button {
        padding: 7px 10px;
        font-size: 11px;
        min-height: 34px;
    }

    /* Stat Cards */
    .stat-card {
        padding: 12px;
    }

    .stat-label {
        font-size: 10px;
    }

    .stat-value {
        font-size: 22px;
        margin: 6px 0 0;
    }

    /* Dialogue Cards */
    .dialogue-card {
        padding: 12px;
    }

    .dialogue-card__title {
        font-size: 14px;
    }

    .dialogue-card__meta {
        font-size: 11px;
    }

    /* Buttons */
    .button {
        padding: 7px 10px;
        font-size: 11px;
        min-height: 34px;
    }

    .button-small {
        padding: 4px 8px;
        font-size: 10px;
        min-height: 26px;
    }

    /* Forms */
    .input-prompt-field,
    .view-control-select {
        padding: 8px 10px;
        font-size: 12px;
    }

    /* Dialogue Filters */
    .dialogue-filters {
        gap: 10px;
    }

    .dialogue-filter-group {
        min-width: 100%;
        font-size: 12px;
    }
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dialogue-card,
.stat-card {
    animation: fadeInUp 0.4s ease-out;
}

/* Improved Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    background-clip: padding-box;
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Improved Page Header */
.dialogue-page-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

.page-title {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.page-subtitle {
    color: rgba(203, 213, 225, 0.7);
    font-size: 14px;
    margin-top: 6px;
} 
 