* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    min-height: 100vh;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --bg: #f9fafb;
    --card: #ffffff;
    --sidebar: #1e293b;
    --sidebar-admin: #7c3aed;
    --navbar-height: 56px;
}

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

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-card {
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-header {
    padding: 30px 24px 20px;
    text-align: center;
}

.auth-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.auth-header p {
    color: var(--text-light);
    font-size: 14px;
}

.auth-form {
    padding: 0 24px 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--card);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.hint {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 400;
}

.form-message {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.form-message.error {
    display: block;
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
}

.form-message.success {
    display: block;
    background: #f0fdf4;
    color: var(--success);
    border: 1px solid #bbf7d0;
}

.auth-footer {
    padding: 16px 24px;
    background: var(--bg);
    text-align: center;
    font-size: 13px;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-img {
    height: 38px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--border);
}

.contact-input-group {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-input-group select {
    width: auto;
    min-width: 70px;
    padding: 12px 10px;
    border: none;
    border-right: 1px solid var(--border);
    border-radius: 0;
    background: var(--bg);
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.contact-input-group select:focus {
    box-shadow: none;
}

.contact-input-group input {
    flex: 1;
    border: none;
    border-radius: 0;
    padding: 12px 14px;
    font-size: 14px;
}

.contact-input-group input:focus {
    box-shadow: none;
    outline: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

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

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

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

.btn-success:hover {
    background: #059669;
}

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

.btn-danger:hover {
    background: #dc2626;
}

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

.btn-warning:hover {
    background: #d97706;
}

.btn-info {
    background: #3b82f6;
    color: white;
}

.btn-info:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-default {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-default:hover {
    background: var(--border);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 5px;
}

.btn-xxs {
    padding: 3px 6px;
    font-size: 10px;
    border-radius: 4px;
}

.btn-lg {
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 10px;
    font-weight: 600;
}

.btn-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.btn-card:hover {
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.btn:disabled,
.btn-disabled {
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

.btn:disabled:hover,
.btn-disabled:hover {
    opacity: 0.5 !important;
}

.layout {
    display: flex;
    height: 100%;
}

.sidebar {
    width: 260px;
    background: var(--card);
    color: var(--text);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 120;
    transition: transform 0.3s ease;
    transform: translateX(-100%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-admin {
    border-left: 3px solid var(--sidebar-admin);
}

.sidebar-admin .sidebar-header {
    border-bottom-color: var(--border);
}

.sidebar-admin .sidebar-header h2 {
    color: var(--sidebar-admin);
}

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

.sidebar-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.sidebar-close {
    display: none;
}

.sidebar-nav {
    padding: 12px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    gap: 12px;
}

.sidebar-nav a::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-light);
    opacity: 0.5;
}

.sidebar-nav a:hover {
    background: var(--bg);
    color: var(--text);
}

.sidebar-nav a.active {
    background: var(--bg);
    color: var(--primary);
    font-weight: 500;
}

.sidebar-nav a.active::before {
    opacity: 1;
    background: var(--primary);
}

.sidebar-nav .logout {
    margin-top: 12px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.nav-dropdown-toggle::before {
    flex-shrink: 0;
}

.nav-dropdown-toggle .dropdown-arrow {
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-dropdown-toggle.expanded .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg);
}

.nav-dropdown-menu.show {
    max-height: 200px;
}

.nav-dropdown-menu a {
    padding-left: 32px;
    font-size: 13px;
}

.nav-dropdown-menu a::before {
    width: 3px;
    height: 3px;
}

.main-content {
    flex: 1;
    margin-left: 0;
    padding: 20px;
    padding-top: 20px;
    min-height: calc(100vh - var(--navbar-height));
    width: 100%;
    margin-top: var(--navbar-height);
    overflow-y: auto;
    overflow-x: hidden;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.page-header h1 {
    font-size: 20px;
    font-weight: 600;
}

.user-info {
    font-size: 13px;
    color: var(--text-light);
}

.toolbar {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-container {
    background: var(--card);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

.data-table th,
.data-table td {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    vertical-align: middle;
}

.data-table th {
    background: var(--bg);
    font-weight: 500;
    font-size: 12px;
    color: var(--text-light);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 0 0 var(--bg);
    border-top: none;
}

.data-table th::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--bg);
}

.data-table td {
    font-size: 13px;
}

.data-table tbody tr:hover {
    background: var(--bg);
}

.data-table .empty-row {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
}

.col-checkbox {
    width: 20px;
    min-width: 20px;
    padding: 6px 2px !important;
    text-align: center !important;
}

.col-checkbox input {
    width: 10px;
    height: 10px;
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
}

.col-name {
    min-width: 80px;
    max-width: 120px;
    text-align: left !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-actions {
    min-width: 140px;
}

.sticky-left {
    position: sticky;
    left: 0;
    z-index: 15;
    background: var(--card);
    box-shadow: -1px 0 0 var(--card);
}

.sticky-right {
    position: sticky;
    right: 0;
    z-index: 15;
    background: var(--card);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.sticky-right.dropdown-active {
    z-index: 9998;
}

.data-table th.sticky-left {
    background: var(--bg);
    z-index: 16;
    box-shadow: -1px 0 0 var(--bg);
}

.data-table th.sticky-right {
    background: var(--bg);
    z-index: 16;
    border-left-color: rgba(0, 0, 0, 0.05);
}

.data-table tbody tr:hover .sticky-left,
.data-table tbody tr:hover .sticky-right {
    background: var(--bg);
}

.actions {
    display: flex;
    gap: 3px;
    justify-content: center;
    flex-wrap: nowrap;
}

.actions .btn-sm {
    padding: 3px 6px;
    font-size: 11px;
    min-width: auto;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

.dropdown-toggle:hover {
    background: var(--bg);
}

.dropdown-menu {
    position: fixed;
    min-width: 80px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    display: none;
    padding: 4px 0;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--bg);
}

.dropdown-menu a.text-danger {
    color: var(--danger);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 20px;
    background: var(--bg);
    color: var(--text);
    white-space: nowrap;
}

.badge-primary {
    background: var(--primary);
    color: #fff;
}

.badge-secondary {
    background: #10b981;
    color: #fff;
}

.badge-success {
    background: var(--success);
    color: #fff;
}

.badge-info {
    background: var(--primary-light);
    color: #fff;
}

.badge-warning {
    background: var(--warning);
    color: #fff;
}

.badge-danger {
    background: var(--danger);
    color: #fff;
}

.card-code {
    background: var(--bg);
    padding: 6px 10px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
    user-select: all;
}

.card-code:hover {
    background: var(--border);
}

.card-code:active {
    background: var(--primary);
    color: #fff;
}

.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 24px;
    background: var(--success);
    color: #fff;
    font-size: 14px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: fadeIn 0.2s ease;
    pointer-events: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.status {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status::before {
    content: '';
    width: 14px;
    height: 14px;
    margin-right: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-running {
    color: var(--success);
}

.status-running::before {
    width: 14px;
    height: 14px;
    border: 2px solid var(--success);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.status-idle {
    color: var(--text-light);
}

.status-idle::before {
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
}

.status-stopped {
    color: var(--danger);
}

.status-stopped::before {
    display: none;
}

.admin-users .status::before {
    display: none;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--card);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.modal-content.modal-lg {
    max-width: 800px;
}

.modal-content.modal-sm {
    max-width: 360px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.close,
.modal-close {
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    user-select: none;
}

.close:hover,
.modal-close:hover {
    color: var(--text);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-row.checkboxes {
    margin-top: 8px;
}

.form-row.checkboxes label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
}

.form-row.checkboxes input {
    margin-right: 8px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group input {
    flex: 1;
}

.input-group span {
    color: var(--text-light);
}

.log-content {
    background: #fff;
    color: #374151;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.6;
    height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    border: 1px solid #e5e7eb;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    background: #e5e7eb;
}

.history-datetime {
    font-weight: 500;
    color: #374151;
}

.history-size {
    font-size: 12px;
    color: #6b7280;
}

.history-empty {
    text-align: center;
    color: #9ca3af;
    padding: 40px 20px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success {
    background: #f0fdf4;
    color: var(--success);
    border: 1px solid #bbf7d0;
}

.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: var(--card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
}

.navbar-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.navbar-right {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.navbar-welcome {
    font-size: 13px;
    color: var(--text-light);
}

.navbar-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background 0.2s;
}

.navbar-toggle:hover {
    background: var(--bg);
}

body.sidebar-open .navbar-toggle {
    opacity: 0;
    pointer-events: none;
}

.navbar-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.hamburger {
    display: none;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 110;
}

.sidebar-overlay.show {
    display: block;
}

.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.filter-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-bar a {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s;
    background: var(--card);
    border: 1px solid var(--border);
}

.filter-bar a:hover {
    background: var(--bg);
    color: var(--text);
}

.filter-bar a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination {
    display: flex;
    gap: 6px;
    margin-top: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination a {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
    background: var(--card);
    border: 1px solid var(--border);
}

.pagination a:hover {
    background: var(--bg);
    border-color: var(--primary);
}

.pagination a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.switch-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.switch-label > span {
    font-size: 14px;
    color: var(--text);
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.2s;
    border-radius: 24px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.switch input:checked + .switch-slider {
    background-color: var(--primary);
}

.switch input:checked + .switch-slider:before {
    transform: translateX(20px);
}

.batch-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-wrap: nowrap;
}

.selected-count {
    font-size: 11px;
    color: var(--text-light);
    padding: 0 6px;
    white-space: nowrap;
}

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-info { color: #17a2b8; }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-muted { color: #999; }

.modal-sm {
    max-width: 320px;
}

@media (max-width: 768px) {
    .sidebar {
        width: 260px;
    }
    
    .main-content {
        padding: 16px;
        padding-top: 16px;
    }
    
    .btn-lg {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .page-header {
        flex-wrap: wrap;
    }
    
    .page-header h1 {
        font-size: 18px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-height: 85vh;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 14px 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 12px 16px;
    }
    
    .log-content {
        height: 300px;
        font-size: 11px;
    }
    
    .navbar-welcome {
        font-size: 12px;
    }
    
    .navbar-right {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .data-table {
        min-width: 500px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .auth-header {
        padding: 24px 20px 16px;
    }

    .auth-header h1 {
        font-size: 20px;
    }

    .auth-form {
        padding: 0 20px 20px;
    }

    .auth-footer {
        padding: 14px 20px;
    }

    .filter-bar {
        gap: 6px;
    }

    .filter-bar a {
        padding: 6px 12px;
        font-size: 13px;
    }

    .pagination {
        gap: 4px;
    }

    .pagination a {
        padding: 6px 10px;
        font-size: 13px;
    }
}

.cron-help {
    background: var(--bg);
    border-radius: 8px;
    padding: 14px;
    margin-top: 12px;
    font-size: 13px;
}

.cron-help h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.cron-help h4:not(:first-child) {
    margin-top: 12px;
}

.cron-help p {
    color: var(--text-light);
    margin-bottom: 8px;
}

.cron-help code {
    background: var(--card);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    color: var(--primary);
}

.cron-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 8px;
}

.cron-table th,
.cron-table td {
    padding: 6px 8px;
    text-align: left;
    border: 1px solid var(--border);
}

.cron-table th {
    background: var(--card);
    font-weight: 500;
}

.cron-help ul {
    margin: 0;
    padding-left: 18px;
}

.cron-help li {
    margin: 4px 0;
    color: var(--text-light);
}
