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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --error: #ef4444;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-input: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-hint: #64748b;
    --border: #334155;
    --shadow: rgba(99, 102, 241, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    color: var(--text-primary);
    padding: 2rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.6s ease-out;
}

.logo {
    display: inline-block;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.main-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.form-group {
    margin-bottom: 2rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-hint);
    pointer-events: none;
}

input[type="text"] {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--bg-input);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-dark);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

input[type="text"]::placeholder {
    color: var(--text-hint);
}

.input-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-hint);
}

.discover-btn {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.discover-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.discover-btn:hover::before {
    left: 100%;
}

.discover-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.discover-btn:active {
    transform: translateY(0);
}

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

.btn-icon {
    transition: transform 0.3s ease;
}

.discover-btn:hover .btn-icon {
    transform: translateX(4px);
}

.status {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary);
    border-radius: 12px;
    margin-top: 2rem;
    animation: fadeInUp 0.3s ease-out;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

#statusText {
    color: var(--text-primary);
    font-weight: 500;
}

.error {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    border-radius: 12px;
    margin-top: 2rem;
    animation: fadeInUp 0.3s ease-out;
}

.error svg {
    color: var(--error);
    flex-shrink: 0;
}

#errorText {
    color: var(--error);
    font-weight: 500;
}

.results {
    margin-top: 2rem;
    animation: fadeInUp 0.3s ease-out;
}

.results h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

#servicesList {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-card {
    background: var(--bg-input);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    animation: fadeInUp 0.3s ease-out backwards;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.service-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.service-url {
    font-size: 0.9rem;
    color: var(--text-secondary);
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

.success-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    border-radius: 12px;
}

.success-message svg {
    color: var(--success);
    flex-shrink: 0;
}

.success-message span {
    color: var(--success);
    font-weight: 500;
}

.hidden {
    display: none !important;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.info-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
}

.info-card:nth-child(1) {
    animation-delay: 0.4s;
}

.info-card:nth-child(2) {
    animation-delay: 0.5s;
}

.info-card:nth-child(3) {
    animation-delay: 0.6s;
}

.info-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .main-card {
        padding: 1.5rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .tab-container {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }
}

/* Tab Navigation */
.tab-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg-card);
    padding: 0.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

/* Select Dropdown Styles */
.select-wrapper select {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--bg-input);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    appearance: none;
    cursor: pointer;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-hint);
    pointer-events: none;
    font-size: 0.8rem;
}

.select-wrapper select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-dark);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.select-wrapper select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.5rem;
}

/* Number Input */
input[type="number"] {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--bg-input);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-dark);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Trigger Button Variant */
.trigger-btn {
    background: linear-gradient(135deg, #10b981, #059669);
}

.trigger-btn:hover {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

/* Batch Progress */
.batch-progress {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid var(--border);
    border-radius: 16px;
    animation: fadeInUp 0.3s ease-out;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
}

#progressCount {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: var(--bg-input);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 6px;
    transition: width 0.3s ease;
}

.current-bank {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    padding: 0.75rem;
    background: var(--bg-input);
    border-radius: 8px;
    word-break: break-all;
}

/* Batch Results */
.batch-results {
    margin-top: 2rem;
    animation: fadeInUp 0.3s ease-out;
}

.batch-results h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.batch-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-card.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
}

.stat-card.failed {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
}

.stat-card.total {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-card.success .stat-number {
    color: var(--success);
}

.stat-card.failed .stat-number {
    color: var(--error);
}

.stat-card.total .stat-number {
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.batch-log {
    max-height: 300px;
    overflow-y: auto;
    background: var(--bg-input);
    border-radius: 12px;
    padding: 1rem;
}

.batch-log::-webkit-scrollbar {
    width: 8px;
}

.batch-log::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 4px;
}

.batch-log::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.log-entry {
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.log-entry:last-child {
    margin-bottom: 0;
}

.log-entry.success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid var(--success);
}

.log-entry.error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--error);
}

.log-entry .log-url {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.log-entry .log-message {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Fetch Banks Button */
.fetch-btn {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    margin-bottom: 1.5rem;
}

.fetch-btn:hover {
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
}

/* Bank Selection Section */
.bank-selection-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid var(--border);
    border-radius: 16px;
    animation: fadeInUp 0.3s ease-out;
}

.selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.selection-info h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.selection-count {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

.selection-actions {
    display: flex;
    gap: 0.5rem;
}

.select-action-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.select-action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.select-action-btn.deselect:hover {
    background: var(--error);
    border-color: var(--error);
}

/* Bank List Container */
.bank-list-container {
    max-height: 400px;
    overflow-y: auto;
    display: grid;
    gap: 0.5rem;
}

.bank-list-container::-webkit-scrollbar {
    width: 8px;
}

.bank-list-container::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 4px;
}

.bank-list-container::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.bank-list-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Bank Item */
.bank-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-input);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bank-item:hover {
    background: var(--bg-dark);
    border-color: var(--primary);
}

.bank-item.selected {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
}

.bank-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.bank-item-info {
    flex: 1;
    min-width: 0;
}

.bank-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bank-item-url {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Search/Filter Bank */
.bank-search-container {
    margin-bottom: 1rem;
}

.bank-search-container input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.bank-search-container input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-dark);
}

.bank-search-container input::placeholder {
    color: var(--text-hint);
}

/* No Banks Message */
.no-banks-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Updated trigger button spacing */
.trigger-btn {
    margin-top: 1.5rem;
}

/* Processed Bank Styles */
.bank-item.processed {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(100, 116, 139, 0.1);
    border-color: rgba(100, 116, 139, 0.3);
}

.bank-item.processed:hover {
    background: rgba(100, 116, 139, 0.15);
    border-color: rgba(100, 116, 139, 0.4);
    transform: none;
}

.bank-item.processed input[type="checkbox"] {
    cursor: not-allowed;
}

.processed-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 6px;
    margin-left: 0.5rem;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.processed-info {
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.processed-info-text {
    color: var(--success);
    font-size: 0.9rem;
    font-weight: 500;
}

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg-input);
    border: 2px dashed var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-label:hover {
    background: var(--bg-dark);
    border-color: var(--primary);
    color: var(--text-primary);
}

.file-upload-label.has-file {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    border-style: solid;
    color: var(--primary);
}

.file-upload-label svg {
    flex-shrink: 0;
}

/* Country badge for Excel import */
.bank-item-country {
    font-size: 0.75rem;
    color: var(--text-hint);
    background: var(--bg-dark);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.25rem;
    display: inline-block;
}
/* ============================================
   MANAGE SERVICES TAB STYLES
   ============================================ */

.manage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.manage-header h2 {
    margin: 0;
    font-size: 1.75rem;
    color: var(--text-primary);
}

.manage-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

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

.toggle-label small {
    display: block;
    color: var(--text-hint);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.block-toggle {
    flex-direction: column;
    align-items: flex-start;
}

.secondary-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.secondary-btn:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Services Table */
.services-table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.services-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-input);
}

.services-table thead {
    background: var(--bg-card);
    border-bottom: 2px solid var(--border);
}

.services-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.services-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.services-table tr:last-child td {
    border-bottom: none;
}

.services-table tbody tr {
    transition: all 0.2s ease;
}

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

.services-table tbody tr.blocked-row {
    opacity: 0.5;
    background: rgba(239, 68, 68, 0.05);
}

.services-table tbody tr.blocked-row:hover {
    opacity: 0.7;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-badge.blocked {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.05);
}

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

.action-btn.unblock-btn:hover {
    background: var(--success);
    border-color: var(--success);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

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

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

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

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

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.readonly-input {
    background: var(--bg-dark) !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.char-count {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-hint);
    margin-top: 0.25rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

.toast.hidden {
    display: none;
}

.toast.success {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.toast.error {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#toastMessage {
    color: var(--text-primary);
    font-weight: 500;
}

/* Comment Cell */
.comment-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comment-cell:hover {
    white-space: normal;
    word-break: break-word;
}

/* URL Cell */
.url-cell {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--primary);
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-hint);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Migration Required Styles */
.migration-required {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(251, 146, 60, 0.1) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 2rem 0;
    text-align: center;
}

.migration-icon {
    margin-bottom: 1.5rem;
}

.migration-icon svg {
    width: 64px;
    height: 64px;
    color: #fb923c;
    filter: drop-shadow(0 0 20px rgba(251, 146, 60, 0.3));
}

.migration-required h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #fbbf24;
}

.migration-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.migration-steps {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    margin: 2rem 0;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.migration-steps h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.migration-steps ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.migration-steps li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.migration-steps li strong {
    color: var(--text-primary);
}

.migration-steps a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.migration-steps a:hover {
    text-decoration: underline;
}

.sql-code {
    background: #0f172a;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
}

.sql-code pre {
    margin: 0;
    overflow-x: auto;
}

.sql-code code {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #a5f3fc;
    line-height: 1.6;
}

.copy-sql-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.copy-sql-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.copy-sql-btn:active {
    transform: translateY(0);
}

.migration-help {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 2rem;
}

.migration-help p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.migration-help code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #a5f3fc;
}

/* Responsive */
@media (max-width: 768px) {
    .manage-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .services-table {
        font-size: 0.85rem;
    }
    
    .services-table th,
    .services-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .modal-content {
        margin: 1rem;
    }
    
    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

/* Fullscreen Manage Services Styles */
.fullscreen-tab {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    z-index: 1000;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.fullscreen-tab.active {
    display: flex;
}

.fullscreen-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-left h2 {
    margin: 0;
    font-size: 1.75rem;
    color: var(--text-primary);
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.icon-btn {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-btn:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.icon-btn.refresh-btn:hover {
    transform: rotate(180deg) scale(1.05);
}

/* Statistics Dashboard */
.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 0.5rem 0;
}

.stat-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

.stat-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Search Controls */
.search-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-box {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.filter-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.sort-select {
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
    padding: 0.875rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 180px;
}

.sort-select:hover {
    border-color: rgba(99, 102, 241, 0.5);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-hint);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 3rem;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-input::placeholder {
    color: var(--text-hint);
}

.clear-btn {
    position: absolute;
    right: 1rem;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.clear-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.1);
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    padding: 0.75rem 1rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.2s ease;
}

.filter-toggle:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(99, 102, 241, 0.4);
}

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

.toggle-switch {
    width: 44px;
    height: 24px;
    background: rgba(71, 85, 105, 0.5);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.filter-toggle input:checked + .toggle-switch {
    background: var(--primary);
}

.filter-toggle input:checked + .toggle-switch::after {
    left: 23px;
}

.toggle-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.back-btn {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: translateX(-2px);
}

.count-badge {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.fullscreen-services-container {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* Banks List Styles */
.banks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bank-group {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bank-group:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.bank-header {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.bank-header:hover {
    background: rgba(99, 102, 241, 0.1);
}

.bank-header.expanded {
    background: rgba(99, 102, 241, 0.15);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.bank-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bank-toggle {
    font-size: 1rem;
    color: var(--primary);
    transition: transform 0.2s ease;
    min-width: 20px;
}

.bank-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.service-count {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
    color: #10b981;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    border: 1px solid rgba(16, 185, 129, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.bank-services {
    padding: 0;
}

/* Service Item Styles */
.service-item {
    padding: 1.5rem 1.5rem;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
    transition: all 0.2s ease;
    position: relative;
}

.service-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(139, 92, 246, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.service-item:hover {
    background: rgba(99, 102, 241, 0.08);
}

.service-item:hover::before {
    opacity: 1;
}

.service-item.blocked {
    opacity: 0.65;
    background: rgba(239, 68, 68, 0.05);
}

.service-item.blocked::before {
    background: linear-gradient(180deg, #ef4444 0%, rgba(239, 68, 68, 0.5) 100%);
}

.service-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.service-name-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.service-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.service-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.view-btn {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.view-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.edit-btn {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.edit-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.service-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 2rem;
}

.service-url,
.service-comment {
    display: flex;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.service-url .label,
.service-comment .label {
    color: var(--text-hint);
    font-weight: 600;
    min-width: 80px;
}

.url-link {
    color: var(--primary);
    text-decoration: none;
    word-break: break-all;
}

.url-link:hover {
    text-decoration: underline;
}

.comment-text {
    color: var(--text-secondary);
}

/* Status Badges in Service Items */
.service-item .status-badge {
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-item .status-badge.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.25) 100%);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.service-item .status-badge.blocked {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.25) 100%);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Empty State & No Results */
.empty-state,
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state svg,
.no-results svg {
    margin-bottom: 1.5rem;
    color: var(--text-hint);
    opacity: 0.5;
}

.empty-state h3,
.no-results h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.empty-state p,
.no-results p {
    margin: 0;
    color: var(--text-hint);
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(30, 41, 59, 0.6);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    flex-shrink: 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-btn {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
}

.page-number {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 36px;
    text-align: center;
}

.page-number:hover:not(.active) {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

.page-number.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-ellipsis {
    padding: 0.5rem 0.5rem;
    color: var(--text-hint);
    font-weight: 600;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.items-per-page label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.items-per-page-select {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.items-per-page-select:hover {
    border-color: rgba(99, 102, 241, 0.5);
}

.items-per-page-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Responsive Fullscreen */
@media (max-width: 768px) {
    .fullscreen-header {
        padding: 1rem;
    }
    
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .header-left h2 {
        font-size: 1.35rem;
    }
    
    .header-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .icon-btn {
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }
    
    .stats-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .search-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .fullscreen-services-container {
        padding: 1rem;
    }
    
    .bank-header {
        padding: 1rem;
    }
    
    .bank-name {
        font-size: 1.1rem;
    }
    
    .service-item {
        padding: 1rem;
    }
    
    .service-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .service-actions {
        width: 100%;
    }
    
    .action-btn {
        flex: 1;
    }
    
    .service-details {
        padding-left: 0;
    }
    
    /* Pagination responsive */
    .pagination-container {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .pagination-info,
    .items-per-page {
        width: 100%;
        justify-content: center;
    }
    
    .pagination-controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    
    .page-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   Cron Jobs Tab Styles
   ============================================ */

.cron-status-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.cron-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cron-status-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.running {
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

.status-dot.stopped {
    background: #6b7280;
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.cron-status-indicator h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #fff;
}

.cron-status-indicator p {
    margin: 0.25rem 0 0 0;
    color: #9ca3af;
    font-size: 0.875rem;
}

.cron-actions {
    display: flex;
    gap: 0.75rem;
}

.cron-actions button {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.cron-info {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    color: #9ca3af;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
}

.cron-controls-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.cron-category-selector {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-checkboxes {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.category-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-checkbox-label:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

.category-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #6366f1;
}

.checkbox-text {
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    user-select: none;
}

.manual-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.action-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.action-btn-content {
    flex: 1;
}

.action-btn-title {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.action-btn-desc {
    color: #9ca3af;
    font-size: 0.875rem;
}

.cron-logs-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.logs-header h3 {
    margin: 0;
}

.cron-logs {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.log-entry {
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-time {
    color: #9ca3af;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.log-message {
    color: #e5e7eb;
    flex: 1;
}

.log-entry.success .log-message {
    color: #10b981;
}

.log-entry.error .log-message {
    color: #ef4444;
}

.log-entry.info .log-message {
    color: #3b82f6;
}

.cron-config-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

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

.config-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.config-label {
    color: #9ca3af;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.config-value {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
}

.cron-help-card {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 2rem;
}

.help-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.help-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.help-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.help-step-content {
    flex: 1;
}

.help-step-content strong {
    color: #fff;
    display: block;
    margin-bottom: 0.25rem;
}

.help-step-content p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
}

.secondary-btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}
