/**
 * Unified Admin CSS
 * Combined from: style.css, style-fix.css, applications-improvements.css, and inline CSS from admin pages
 * Generated: 2025-07-13
 */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --transition: all 0.15s ease-in-out;
    --content-max-width: 1200px;
}

/* ===== GLOBAL RESET AND BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
}

/* ===== LOGIN PAGE STYLES ===== */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.login-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.login-header i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    opacity: 0.9;
    font-size: 14px;
}

.login-form {
    padding: 30px;
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group.col-md-6 {
    width: 100%;
}

.form-group.col-md-4 {
    width: 100%;
}

.form-group.col-md-3 {
    width: 100%;
}

@media (min-width: 768px) {
    .form-group.col-md-6 {
        width: 50%;
    }
    
    .form-group.col-md-4 {
        width: 33.33%;
    }
    
    .form-group.col-md-3 {
        width: 25%;
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    background: var(--surface-color);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--surface-color);
    color: var(--text-primary);
    transition: var(--transition);
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control:disabled {
    background-color: #f8f9fa;
    color: var(--text-muted);
    cursor: not-allowed;
}

.form-control.readonly,
.form-control[readonly] {
    background-color: #f8f9fa;
    color: var(--text-muted);
    cursor: not-allowed;
}

input.readonly,
input[readonly],
textarea.readonly,
textarea[readonly] {
    background-color: #f8f9fa !important;
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
    border-style: dashed !important;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 5px;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--text-primary);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.help-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
    width: 100%;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .form-group {
    padding: 10px;
    margin-bottom: 10px;
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h4 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-section h4 i {
    margin-right: 8px;
    color: #007bff;
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    min-height: 44px;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background: #475569;
    border-color: #475569;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-error,
.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-error:hover,
.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    min-height: 36px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Button variants for mail history and other pages */
.btn-view {
    background: #17a2b8;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-view:hover {
    background: #138496;
}

.btn-retry {
    background: #ffc107;
    color: #212529;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-retry:hover {
    background: #e0a800;
}

.btn-delete {
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-delete:hover {
    background: #c82333;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 250px;
    background: var(--surface-color);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: var(--background-color);
    color: var(--text-primary);
    border-left-color: var(--primary-color);
}

.nav-link.active {
    background: var(--background-color);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.nav-link i {
    width: 20px;
    text-align: center;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    background: var(--background-color);
    min-height: 100vh;
    transition: margin-left 0.3s;
}

.topbar {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0 30px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-left h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-menu {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.user-info:hover {
    background: var(--background-color);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.content {
    padding: 30px;
}

.content-wrapper {
    padding: 20px;
    max-width: 100%;
}

.content-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

/* ===== PAGE HEADER ===== */
.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ===== CARDS ===== */
.card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 20px;
    width: 100%;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 20px;
}

/* ===== STATISTICS AND WIDGETS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.primary {
    background: var(--primary-color);
}

.stat-icon.success {
    background: var(--success-color);
}

.stat-icon.warning {
    background: var(--warning-color);
}

.stat-icon.error {
    background: var(--error-color);
}

.stat-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: #495057;
}

.stat-card p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* ===== TABLES ===== */
.table-responsive {
    overflow-x: auto;
    width: 100%;
    margin-bottom: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table th {
    background: var(--background-color);
    font-weight: 600;
    color: var(--text-primary);
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tr:hover {
    background: var(--background-color);
}

.mail-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mail-table th,
.mail-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.mail-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.mail-table tbody tr:hover {
    background: #f8f9fa;
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-error,
.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-secondary {
    background: #f1f5f9;
    color: #475569;
}

.badge-primary {
    background: #dbeafe;
    color: var(--primary-color);
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-sent {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.status-bounced {
    background: #ffeeba;
    color: #533f03;
}

.status-delivered {
    background: #d1ecf1;
    color: #0c5460;
}

/* ===== MESSAGES AND ALERTS ===== */
.message {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.message.info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-warning {
    background-color: #fffbeb;
    border-color: #fed7aa;
    color: #92400e;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 15px 20px;
    margin-bottom: 10px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease-out;
    min-width: 300px;
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--error-color);
}

.toast.warning {
    border-left: 4px solid var(--warning-color);
}

.toast.info {
    border-left: 4px solid var(--info-color);
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-info {
    border-left: 4px solid #17a2b8;
}

.toast-content {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-muted);
    margin-left: auto;
}

.toast-close:hover {
    color: var(--text-primary);
}

/* ===== MODALS ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.large-modal .modal-content {
    max-width: 90vw;
    width: 1000px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close,
.close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover,
.close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    gap: 5px;
}

.tab {
    padding: 12px 20px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    margin-bottom: -1px;
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.tab-content {
    display: none;
    padding-top: 20px;
}

.tab-content.active {
    display: block;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.tab-nav .tab-item {
    flex: 1;
}

.tab-nav .tab-link {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #6c757d;
    background: #f8f9fa;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border-right: 1px solid #dee2e6;
}

.tab-nav .tab-link:last-child {
    border-right: none;
}

.tab-nav .tab-link:hover {
    background-color: #e9ecef;
    color: #495057;
}

.tab-nav .tab-link.active {
    background-color: #fff;
    color: #007bff;
    border-bottom: 3px solid #007bff;
    font-weight: 600;
}

.tab-content {
    background-color: #fff;
    border-radius: 0 0 8px 8px;
    min-height: 400px;
}

.tab-content .tab-pane {
    display: none;
    padding: 25px;
}

.tab-content .tab-pane.active {
    display: block;
}

/* ===== SEARCH AND FILTERS ===== */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    min-width: 120px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filters-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-item label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #495057;
}

.filter-item input,
.filter-item select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
    align-items: center;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--border-radius);
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.pagination-item:hover {
    background-color: var(--background-color);
}

.pagination-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.pagination button:hover:not(:disabled) {
    background: #f8f9fa;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* ===== PROFILE STYLES ===== */
.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    color: white;
    flex-shrink: 0;
}

.profile-info {
    text-align: center;
    margin-bottom: 20px;
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-role {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .profile-details {
        flex-direction: row;
        align-items: flex-start;
    }
}

.profile-data {
    flex: 1;
}

.profile-field {
    padding: 8px 0;
    font-weight: 500;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.profile-info h3 {
    margin: 0 0 5px 0;
    color: #495057;
}

.profile-info p {
    margin: 0;
    color: #6c757d;
}

/* ===== SESSIONS STYLES ===== */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.session-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--surface-color);
    transition: var(--transition);
}

.session-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.session-item.current-session {
    border-left: 3px solid var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

@media (min-width: 768px) {
    .session-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.session-info {
    flex: 1;
}

.session-actions {
    margin-top: 10px;
}

@media (min-width: 768px) {
    .session-actions {
        margin-top: 0;
    }
}

.session-device {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.session-device i {
    color: var(--text-secondary);
}

.session-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

@media (min-width: 768px) {
    .session-details {
        flex-direction: row;
        gap: 20px;
    }
}

.session-details div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.session-details i {
    color: var(--text-muted);
}

/* ===== AUDIT LOG STYLES ===== */
.audit-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.audit-item {
    display: flex;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--surface-color);
    transition: var(--transition);
}

.audit-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.audit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background-color);
    margin-right: 15px;
    flex-shrink: 0;
}

.audit-icon i {
    font-size: 18px;
    color: var(--text-secondary);
}

.audit-content {
    flex: 1;
}

.audit-text {
    margin-bottom: 8px;
    line-height: 1.5;
}

.audit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 14px;
}

.audit-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.audit-meta i {
    color: var(--text-muted);
}

/* ===== APPLICATION SCOPES STYLES ===== */
.scope-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    background: #ffffff;
    transition: background-color 0.2s ease;
}

.scope-item:hover {
    background-color: var(--background-color);
}

.scope-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.scope-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scope-name i {
    color: #2563eb;
}

.scope-actions {
    display: flex;
    gap: 4px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.scope-item:hover .scope-actions {
    opacity: 1;
}

.scope-description {
    color: #666;
    font-style: italic;
    margin-bottom: 8px;
}

.scope-meta {
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
    margin-top: 8px;
}

.scopes-list {
    max-height: 400px;
    overflow-y: auto;
}

/* ===== MAIL SPECIFIC STYLES ===== */
.mail-type {
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    background: #e9ecef;
    color: #495057;
}

.mail-actions {
    display: flex;
    gap: 5px;
}

/* ===== DROPDOWN MENUS ===== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1000;
    display: none;
    padding: 8px 0;
}

.dropdown-menu.show {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.dropdown-item {
    display: block;
    padding: 10px 15px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--background-color);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--background-color);
}

.dropdown-menu hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

.dropdown {
    position: relative;
}

.dropdown button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: none;
    border-radius: var(--border-radius);
    background: var(--background-color);
    cursor: pointer;
    transition: var(--transition);
}

.dropdown button:hover {
    background: var(--border-color);
}

/* ===== LOADING AND SPINNERS ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

.loading-overlay.show {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-overlay p {
    color: white;
    font-size: 16px;
}

.loading-spinner {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-spinner p {
    color: var(--text-secondary);
    font-size: 16px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

/* ===== EMPTY STATES ===== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

/* ===== SPECIAL FORM ELEMENTS ===== */
.template-editor {
    height: 400px;
    font-family: 'Courier New', monospace;
    width: 100%;
    border: 1px solid #ced4da;
    padding: 15px;
    border-radius: 6px;
    background-color: #f8f9fa;
    resize: vertical;
    font-size: 13px;
    line-height: 1.4;
}

.reset-template {
    margin-top: 10px;
}

/* ===== TOP BAR AND NAVIGATION ===== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--surface-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 900;
}

.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--border-radius);
    background: var(--background-color);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: var(--border-color);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ===== IMPROVEMENTS AND ANIMATIONS ===== */
.btn .fa-sync-alt {
    transition: transform 0.3s ease;
}

.btn.refreshing .fa-sync-alt {
    animation: spin 1s linear infinite;
}

.auto-refresh-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--info-color);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.auto-refresh-indicator.show {
    opacity: 1;
}

/* ===== FORGOT PASSWORD STYLES ===== */
.forgot-password {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.forgot-password a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.login-footer {
    background: var(--background-color);
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== ANIMATIONS ===== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideIn {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-content.sidebar-active {
        margin-left: 250px;
    }
    
    .sidebar.active + .sidebar-overlay,
    .sidebar.active ~ .sidebar-overlay {
        display: block;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .topbar {
        padding: 0 20px;
    }
    
    .content {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .card-actions .btn {
        width: 100%;
    }
    
    .tab-nav .tab-link {
        padding: 12px 10px;
        font-size: 13px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }
    
    .login-card {
        margin: 0;
    }
    
    .login-header {
        padding: 30px 20px;
    }
    
    .login-form {
        padding: 20px;
    }
    
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .toast {
        max-width: calc(100vw - 40px);
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .table th,
    .table td {
        padding: 8px;
        font-size: 14px;
    }
}

.backup-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }
        
        .stat-card {
            background: white;
            padding: 20px;
            border-radius: 8px;
            border: 1px solid #e5e5e5;
            text-align: center;
        }
        
        .stat-number {
            font-size: 2em;
            font-weight: bold;
            color: #4a90e2;
        }
        
        .stat-label {
            color: #666;
            margin-top: 5px;
        }
        
        .status-badge {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.8em;
            font-weight: bold;
        }
        
        .status-completed { background: #d4edda; color: #155724; }
        .status-failed { background: #f8d7da; color: #721c24; }
        .status-in-progress { background: #fff3cd; color: #856404; }
        .status-pending { background: #cce7ff; color: #004085; }
        
        .table-selection {
            max-height: 200px;
            overflow-y: auto;
            border: 1px solid #ddd;
            padding: 10px;
            border-radius: 4px;
            background: #f9f9f9;
        }
        
        .table-item {
            margin-bottom: 5px;
        }
        
        .table-item input[type="checkbox"] {
            margin-right: 8px;
        }
        
        .progress-bar {
            width: 100%;
            height: 20px;
            background-color: #f0f0f0;
            border-radius: 10px;
            overflow: hidden;
            margin: 10px 0;
        }
        
        .progress-fill {
            height: 100%;
            background-color: #4a90e2;
            width: 0%;
            transition: width 0.3s ease;
        }

  /* Profile Header Styling */
        .profile-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 30px;
            color: white;
            display: flex;
            align-items: center;
            gap: 25px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
            position: relative;
            overflow: hidden;
        }
        
        .profile-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.08)"/><circle cx="90" cy="40" r="0.8" fill="rgba(255,255,255,0.06)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
            pointer-events: none;
        }
        
        .profile-avatar-large {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: rgba(255,255,255,0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            font-weight: bold;
            color: white;
            border: 4px solid rgba(255,255,255,0.3);
            backdrop-filter: blur(10px);
            flex-shrink: 0;
            position: relative;
            z-index: 1;
        }
        
        .profile-info {
            flex: 1;
            position: relative;
            z-index: 1;
        }
        
        .profile-info h3 {
            margin: 0 0 8px 0;
            font-size: 28px;
            font-weight: 600;
            color: white;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .profile-info p {
            margin: 0 0 5px 0;
            color: rgba(255,255,255,0.9);
            font-size: 16px;
            line-height: 1.4;
        }
        
        .profile-info p:last-child {
            color: rgba(255,255,255,0.7);
            font-size: 14px;
        }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .profile-header {
                flex-direction: column;
                text-align: center;
                padding: 25px 20px;
                gap: 20px;
            }
            
            .profile-avatar-large {
                width: 70px;
                height: 70px;
                font-size: 28px;
            }
            
            .profile-info h3 {
                font-size: 24px;
            }
            
            .profile-info p {
                font-size: 14px;
            }
        }
        
        /* Ensure tab system works properly */
        .profile-tabs {
            display: flex;
            border-bottom: 2px solid #e9ecef;
            background: #f8f9fa;
            border-radius: 8px 8px 0 0;
            overflow: hidden;
            margin-bottom: 0;
        }
        
        .profile-tab {
            flex: 1;
            padding: 15px 20px;
            background: #f8f9fa;
            border: none;
            cursor: pointer;
            color: #6c757d;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s ease;
            border-right: 1px solid #dee2e6;
        }
        
        .profile-tab:last-child {
            border-right: none;
        }
        
        .profile-tab:hover {
            background: #e9ecef;
            color: #495057;
        }
        
        .profile-tab.active {
            background: #fff;
            color: #007bff;
            border-bottom: 3px solid #007bff;
            font-weight: 600;
        }
        
        .profile-content {
            background: #fff;
            border-radius: 0 0 8px 8px;
            padding: 25px;
            min-height: 400px;
        }
        
        .profile-section {
            display: none;
        }
        
        .profile-section.active {
            display: block;
        }

/* ===== PERMISSION MATRIX STYLES ===== */
.large-modal .modal-content {
    max-width: 90vw;
    width: 1000px;
}

.permission-matrix-info {
    background: var(--info-color);
    color: white;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.permission-matrix-info ul {
    margin: 10px 0 0 20px;
}

.permission-matrix-global,
.permission-matrix-scope {
    margin-top: 20px;
}

.app-permission-group {
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.app-permission-group h4 {
    background: var(--surface-color);
    padding: 15px 20px;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.permission-table-container {
    overflow-x: auto;
}

.permission-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.permission-table th,
.permission-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.permission-table th {
    background: var(--background-color);
    font-weight: 600;
    color: var(--text-primary);
}

.permission-table tbody tr:hover {
    background: #f8fafc;
}

.permission-level-select {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    color: var(--text-primary);
    min-width: 140px;
}

.permission-level-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.permission-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-info {
    background: var(--info-color);
    color: white;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-secondary {
    background: var(--secondary-color);
    color: white;
}

/* Scope item permission level badge */
.scope-item .badge-info {
    margin-left: 8px;
}

/* Permission matrix responsive */
@media (max-width: 768px) {
    .large-modal .modal-content {
        max-width: 95vw;
        width: auto;
    }
    
    .permission-table {
        font-size: 14px;
    }
    
    .permission-table th,
    .permission-table td {
        padding: 8px 10px;
    }
    
    .permission-level-select {
        min-width: 120px;
        font-size: 13px;
    }
}

/* Tab styling for forms and settings */
.settings-tabs,
.profile-tabs,
.form-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    margin-bottom: 0;
}

.settings-tab,
.profile-tab,
.form-tab {
    flex: 1;
    padding: 15px 20px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    color: #6c757d;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    border-right: 1px solid #dee2e6;
    font-size: 14px;
    font-weight: 500;
}

.settings-tab:last-child,
.profile-tab:last-child,
.form-tab:last-child {
    border-right: none;
}

.settings-tab:hover,
.profile-tab:hover,
.form-tab:hover {
    background: #e9ecef;
    color: #495057;
}

.settings-tab.active,
.profile-tab.active,
.form-tab.active {
    background: #fff;
    color: #007bff;
    border-bottom: 3px solid #007bff;
    font-weight: 600;
}

.settings-content,
.profile-content {
    background: #fff;
    border-radius: 0 0 8px 8px;
    padding: 25px;
    min-height: 400px;
}

.settings-section,
.profile-section,
.form-tab-content {
    display: none;
}

.settings-section.active,
.profile-section.active,
.form-tab-content.active {
    display: block;
}

/* Form styling improvements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    transform: scale(1.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 8px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.checkbox-label span {
    font-size: 14px;
    color: #495057;
}

/* Modal form styling */
.modal .form-tabs {
    margin: -20px -20px 20px -20px;
    border-radius: 0;
}

.modal .form-tab {
    padding: 12px 16px;
    font-size: 13px;
}

.modal .form-tab-content {
    padding-top: 20px;
}