/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #dc2626;
    --primary-dark: #b91c1c;
    --primary-light: #fca5a5;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Grays */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #1e293b;
    
    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Transitions */
    --transition: all 0.2s ease-in-out;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: var(--space-4);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.login-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--space-8);
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.5s ease-out;
}

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

.login-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}

.form-group label {
    font-weight: 500;
    color: #4b5563;
    font-size: 0.875rem;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 2px;
}

.form-group input,
.form-group select {
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    color: #111827;
    line-height: 1.5;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    transform: none;
}

.form-group input:hover,
.form-group select:hover {
    border-color: #9ca3af;
}

.login-btn {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: var(--space-3);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    background: #fef2f2;
    color: var(--error-color);
    padding: var(--space-3);
    border-radius: var(--radius);
    border: 1px solid #fecaca;
    margin-top: var(--space-4);
    font-size: 0.875rem;
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-primary);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: var(--transition);
}

.sidebar-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header .logo h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius);
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-item:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgb(220 38 38 / 0.1);
    color: var(--primary-color);
}

.nav-item i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

.nav-item .badge {
    background: var(--primary-color);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    min-width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--gray-200);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.user-status {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
}

.logout-btn {
    width: 100%;
    background: none;
    border: 1px solid var(--gray-300);
    color: var(--text-secondary);
    padding: var(--space-2);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.logout-btn:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-4) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius);
    transition: var(--transition);
}

.notification-btn:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--error-color);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: none;
    border: none;
    padding: var(--space-2);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.user-menu-btn:hover {
    background: var(--gray-100);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

/* Content */
.content {
    flex: 1;
    padding: var(--space-6);
}

.section {
    display: none;
}

.section.active {
    display: block;
}

/* Chats Section */
.chats-container {
    display: flex;
    height: calc(100vh - 200px);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.chats-sidebar {
    width: 350px;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.chats-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chats-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chats-filters select {
    padding: var(--space-2);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--bg-primary);
}

.chats-list {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-2);
}

.chat-item {
    padding: var(--space-4);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    margin-bottom: var(--space-2);
}

.chat-item:hover {
    background: var(--gray-50);
    border-color: var(--gray-200);
}

.chat-item.active {
    background: rgb(220 38 38 / 0.05);
    border-color: var(--primary-color);
}

.chat-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2);
}

.chat-customer-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.chat-customer-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.chat-customer-details h4 {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.chat-customer-details p {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.chat-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.chat-status.waiting {
    background: #fef3c7;
    color: #d97706;
}

.chat-status.active {
    background: #d1fae5;
    color: #059669;
}

.chat-status.closed {
    background: #f3f4f6;
    color: #6b7280;
}

.chat-preview {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: var(--space-2);
}

.chat-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chat-topic {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Chat Main */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-info {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.chat-customer {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.customer-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.customer-details h4 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.customer-details p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.chat-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-1);
}

.chat-topic {
    background: var(--gray-100);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.chat-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.chat-actions {
    display: flex;
    gap: var(--space-2);
}

.action-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray-300);
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.action-btn.danger:hover {
    background: var(--error-color);
    color: var(--text-white);
    border-color: var(--error-color);
}

.chat-messages {
    flex: 1;
    padding: var(--space-4);
    overflow-y: auto;
    background: var(--bg-secondary);
}

.no-chat-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
}

.no-chat-selected i {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.no-chat-selected h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.no-chat-selected p {
    font-size: 0.875rem;
}

.message {
    margin-bottom: var(--space-4);
    display: flex;
    gap: var(--space-3);
}

.message.agent {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.message.agent .message-avatar {
    background: var(--primary-color);
    color: var(--text-white);
}

.message.customer .message-avatar {
    background: var(--gray-200);
    color: var(--text-secondary);
}

.message-content {
    max-width: 70%;
    background: var(--bg-primary);
    padding: var(--space-3);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.message.agent .message-content {
    background: var(--primary-color);
    color: var(--text-white);
}

.message-text {
    margin-bottom: var(--space-1);
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.chat-input-container {
    padding: var(--space-4);
    border-top: 1px solid var(--gray-200);
    background: var(--bg-primary);
}

.chat-input {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.chat-input input {
    flex: 1;
    padding: var(--space-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: var(--transition);
}

.chat-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(220 38 38 / 0.1);
}

.send-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:hover {
    background: var(--primary-dark);
}

/* Websites Section */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    border: none;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.websites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
}

.website-card {
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.website-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.website-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.website-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.website-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.website-status.active {
    background: #d1fae5;
    color: #059669;
}

.website-domain {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--space-4);
}

.website-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.website-actions {
    display: flex;
    gap: var(--space-2);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--text-secondary);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-200);
    color: var(--text-primary);
}

/* Agents Section */
.agents-table-container {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.agents-table {
    width: 100%;
    border-collapse: collapse;
}

.agents-table th {
    background: var(--gray-50);
    padding: var(--space-4);
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.875rem;
}

.agents-table td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.875rem;
}

.agents-table tr:hover {
    background: var(--gray-50);
}

.agent-name {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.agent-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.agent-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.online {
    background: var(--success-color);
}

.status-indicator.offline {
    background: var(--gray-400);
}

/* Settings Section */
.settings-content {
    max-width: 600px;
}

.settings-card {
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow);
}

.settings-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .chats-container {
        flex-direction: column;
        height: auto;
    }
    
    .chats-sidebar {
        width: 100%;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: var(--space-4);
    }
    
    .content {
        padding: var(--space-4);
    }
    
    .websites-grid {
        grid-template-columns: 1fr;
    }
    
    .agents-table-container {
        overflow-x: auto;
    }
    
    .agents-table {
        min-width: 600px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.6);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    padding: 20px;
    margin: 0 !important;
    backdrop-filter: blur(4px);
}

.modal {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 650px;
    min-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    margin: 0;
    position: relative;
}

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

.modal-header {
    padding: 20px 24px 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    letter-spacing: 0;
}

.modal-close {
    background: #f3f4f6;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #374151;
    transform: scale(1.05);
}

.modal-body {
    padding: 24px;
    background: #ffffff;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    margin: 24px -24px -24px -24px;
    padding: 20px 24px 24px 24px;
    border-radius: 0 0 16px 16px;
}

.modal-actions .btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    min-width: 100px;
}

.modal-actions .btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.modal-actions .btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
    transform: translateY(-1px);
}

.modal-actions .btn-primary {
    background: #dc2626;
    color: #ffffff;
    border: 2px solid #dc2626;
}

.modal-actions .btn-primary:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* API Key Display */
.api-key-display {
    text-align: center;
}

.api-key-container {
    display: flex;
    gap: var(--space-2);
    margin: var(--space-4) 0;
}

.api-key-input {
    flex: 1;
    padding: var(--space-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: monospace;
    font-size: 0.875rem;
    background: var(--gray-50);
}

.api-key-info {
    text-align: left;
    background: var(--gray-50);
    padding: var(--space-4);
    border-radius: var(--radius);
    margin-top: var(--space-4);
}

.api-key-info h4 {
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.api-key-info ol {
    margin: 0;
    padding-left: var(--space-5);
}

.api-key-info li {
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
}

.api-key-info code {
    background: var(--gray-200);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.875rem;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid var(--success-color);
}

.notification-error {
    border-left: 4px solid var(--error-color);
}

.notification-info {
    border-left: 4px solid var(--info-color);
}

.notification i {
    font-size: 1.25rem;
}

.notification-success i {
    color: var(--success-color);
}

.notification-error i {
    color: var(--error-color);
}

.notification-info i {
    color: var(--info-color);
}

.notification span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Agent Status Toggle */
.status-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--space-1);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    margin-left: var(--space-2);
}

.status-toggle:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.agent-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.status-text {
    text-transform: capitalize;
}

.chat-count {
    display: flex;
    align-items: center;
    gap: 2px;
    font-weight: 500;
}

.chat-count .current {
    color: var(--primary-color);
}

.chat-count .separator {
    color: var(--text-muted);
}

.chat-count .max {
    color: var(--text-secondary);
}

.agent-actions {
    display: flex;
    gap: var(--space-2);
}

.agent-actions .btn {
    padding: var(--space-2);
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mt-4 {
    margin-top: var(--space-4);
}

.p-4 {
    padding: var(--space-4);
}

.rounded {
    border-radius: var(--radius);
}

.shadow {
    box-shadow: var(--shadow);
}

/* Typing Indicator */
.typing-indicator {
    opacity: 0.7;
}

.typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
    border-left: 4px solid var(--primary-color);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: var(--success-color);
}

.notification-error {
    border-left-color: var(--error-color);
}

.notification-info {
    border-left-color: var(--info-color);
}

.notification i {
    font-size: 1.2rem;
}

.notification-success i {
    color: var(--success-color);
}

.notification-error i {
    color: var(--error-color);
}

.notification-info i {
    color: var(--info-color);
}

.notification span {
    font-weight: 500;
    color: var(--text-primary);
}

/* ==================== MESSAGES SECTION STYLES ==================== */
.messages-container {
    display: flex;
    gap: 20px;
    height: calc(100vh - 200px);
}

.messages-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.message-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.message-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.message-item.new {
    border-left: 4px solid #ef4444;
}

.message-item.replied {
    border-left: 4px solid #10b981;
}

.message-item.closed {
    border-left: 4px solid #6b7280;
    opacity: 0.7;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.message-customer h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.message-email {
    font-size: 14px;
    color: #6b7280;
}

.message-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.message-status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-new {
    background: #fef2f2;
    color: #dc2626;
}

.status-replied {
    background: #f0fdf4;
    color: #059669;
}

.status-closed {
    background: #f9fafb;
    color: #6b7280;
}

.message-priority {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-urgent {
    background: #fef2f2;
    color: #dc2626;
}

.priority-high {
    background: #fff7ed;
    color: #ea580c;
}

.priority-medium {
    background: #fefce8;
    color: #ca8a04;
}

.priority-low {
    background: #f0f9ff;
    color: #0284c7;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
}

.message-preview {
    margin-bottom: 12px;
}

.message-preview p {
    margin: 0;
    color: #374151;
    line-height: 1.5;
    font-size: 14px;
}

.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
}

.message-topic {
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.message-website {
    background: #e0f2fe;
    color: #0277bd;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.reply-count {
    background: #f0f9ff;
    color: #0369a1;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.no-messages {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-messages i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #d1d5db;
}

.no-messages h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #374151;
}

.no-messages p {
    margin: 0;
    font-size: 14px;
}

.messages-filters {
    display: flex;
    gap: 12px;
}

.messages-filters select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #374151;
}

.messages-filters select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ==================== MESSAGE DETAIL PAGE STYLES ==================== */
.message-detail {
    flex: 1;
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    overflow-y: auto;
}

.message-detail-content {
    max-width: 800px;
    margin: 0 auto;
}

.message-info {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.customer-info h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.customer-email {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
}

.customer-phone {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #9ca3af;
}

.message-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.status-badge, .priority-badge, .topic-badge, .website-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge {
    background: #f0f9ff;
    color: #0369a1;
}

.status-badge.status-new {
    background: #fef2f2;
    color: #dc2626;
}

.status-badge.status-replied {
    background: #f0fdf4;
    color: #059669;
}

.status-badge.status-closed {
    background: #f9fafb;
    color: #6b7280;
}

.priority-badge {
    background: #fefce8;
    color: #ca8a04;
}

.priority-badge.priority-urgent {
    background: #fef2f2;
    color: #dc2626;
}

.priority-badge.priority-high {
    background: #fff7ed;
    color: #ea580c;
}

.priority-badge.priority-medium {
    background: #fefce8;
    color: #ca8a04;
}

.priority-badge.priority-low {
    background: #f0f9ff;
    color: #0284c7;
}

.topic-badge {
    background: #f3f4f6;
    color: #374151;
}

.website-badge {
    background: #e0f2fe;
    color: #0277bd;
}

.original-message {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.original-message h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 16px;
    white-space: pre-wrap;
}

.message-time {
    font-size: 14px;
    color: #9ca3af;
    font-style: italic;
}

.replies-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.replies-section h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.replies-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reply-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
}

.reply-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.reply-item.internal {
    background: #fef3c7;
    border-color: #f59e0b;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reply-agent {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.reply-time {
    font-size: 12px;
    color: #9ca3af;
}

.internal-note {
    background: #f59e0b;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reply-content {
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    white-space: pre-wrap;
}

/* Surveys Section Styles */
.surveys-content {
    padding: 20px;
}

.surveys-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-content h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.stat-content p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.surveys-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.surveys-table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.surveys-table {
    width: 100%;
    border-collapse: collapse;
}

.surveys-table th {
    background: #f8fafc;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.surveys-table td {
    padding: 15px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.surveys-table tr:hover {
    background: #f9fafb;
}

.customer-info strong {
    color: #1f2937;
    font-weight: 600;
}

.customer-info small {
    color: #6b7280;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.solved {
    background: #dcfce7;
    color: #166534;
}

.status-badge.not-solved {
    background: #fee2e2;
    color: #991b1b;
}

.feedback-text {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #6b7280;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.survey-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.detail-row label {
    font-weight: 600;
    color: #374151;
    min-width: 120px;
    font-size: 14px;
}

.detail-row span {
    color: #6b7280;
    font-size: 14px;
}

.feedback-content {
    background: #f8fafc;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #667eea;
    font-style: italic;
    line-height: 1.5;
    max-height: 150px;
    overflow-y: auto;
}

.no-data {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 40px;
}

.no-replies {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
}

.message-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.message-actions {
    display: flex;
    gap: 12px;
}

.message-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
}

.message-actions .btn i {
    margin-right: 6px;
}

.btn-danger {
    background: #dc2626;
    color: white;
    border: 1px solid #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: white;
}

/* ==================== REPLY MODAL STYLES ==================== */

.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999 !important;
    backdrop-filter: blur(4px);
    margin: 0 !important;
    padding: 0 !important;
}

/* JavaScript-created modals (Agent edit, Website edit, etc.) */
.modal[style*="display: flex"] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999 !important;
    backdrop-filter: blur(4px);
    margin: 0 !important;
    padding: 0 !important;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-500);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.reply-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.customer-info {
    padding: 16px;
    background: var(--gray-50);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.customer-info h4 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.customer-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
}

.modal-footer .btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    min-width: 100px;
}

.modal-footer .btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.modal-footer .btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
    transform: translateY(-1px);
}

.modal-footer .btn-primary {
    background: #dc2626;
    color: #ffffff;
    border: 2px solid #dc2626;
}

.modal-footer .btn-primary:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}


/* Responsive Design */
@media (max-width: 640px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
}
