/* Material Design Color Palette */
:root {
    --primary-color: #1976d2;
    --primary-light: #63a4ff;
    --primary-dark: #004ba0;
    --secondary-color: #dc004e;
    --secondary-light: #ff5c8d;
    --secondary-dark: #9a0036;
    --background-color: #f5f5f5;
    --surface-color: #fff;
    --error-color: #f44336;
    --text-primary: rgba(0,0,0,0.87);
    --text-secondary: rgba(0,0,0,0.6);
    --text-disabled: rgba(0, 0, 0, 0.38);
    --divider-color: rgba(0,0,0,0.12);
    --elevation-1: 0 2px 1px -1px rgba(0,0,0,0.2), 0 1px 1px 0 rgba(0,0,0,0.14), 0 1px 3px 0 rgba(0,0,0,0.12);
    --elevation-2: 0 3px 1px -2px rgba(0,0,0,0.2), 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12);
    --elevation-4: 0 2px 4px -1px rgba(0,0,0,0.2), 0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12);
    --elevation-8: 0 5px 5px -3px rgba(0,0,0,0.2), 0 8px 10px 1px rgba(0,0,0,0.14), 0 3px 14px 2px rgba(0,0,0,0.12);
    --elevation-16: 0 8px 10px 1px rgba(0,0,0,0.2), 0 16px 24px 2px rgba(0,0,0,0.14), 0 6px 30px 5px rgba(0,0,0,0.12);
    --elevation-24: 0 11px 15px -7px rgba(0,0,0,0.2), 0 24px 38px 3px rgba(0,0,0,0.14), 0 9px 46px 8px rgba(0,0,0,0.12);
}

/* Base Layout */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
}

/* Remove top navigation styles */
.top-nav {
    display: none;
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--surface-color);
    box-shadow: var(--elevation-4);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    z-index: 1300;
}

.top-bar h1 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    padding-left: 50px;
}

/* Side Navigation */
.side-nav {
    width: 60px;
    background: var(--surface-color);
    box-shadow: var(--elevation-4);
    padding: 1rem 0;
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    height: calc(100vh - 60px);
    z-index: 1200;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.side-nav::-webkit-scrollbar {
    width: 4px;
}

.side-nav::-webkit-scrollbar-track {
    background: transparent;
}

.side-nav::-webkit-scrollbar-thumb {
    background: var(--divider-color);
    border-radius: 2px;
}

.side-nav-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--divider-color);
    margin-bottom: 1rem;
}

.side-nav-header h1 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.5rem;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    text-align: left;
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--primary-color);
}

.nav-link.active {
    background: rgba(25, 118, 210, 0.08);
    color: var(--primary-color);
}

.nav-link .material-icons {
    font-size: 1.25rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 60px;
    margin-top: 60px;
    padding: 2rem;
    background: var(--background-color);
    min-height: calc(100vh - 60px);
    width: calc(100% - 60px);
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Page Container */
.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Page Styles */
.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--divider-color);
}

/* Material Page Header Styles */
.page-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--divider-color);
}

.page-header .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    height: 36px;
    border-radius: 18px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.0892857143em;
    text-transform: uppercase;
}

.page-header .btn .material-icons {
    font-size: 1.25rem;
}

/* Card Styles */
.card {
    background: var(--surface-color);
    border-radius: 8px;
    box-shadow: var(--elevation-2);
    padding: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.card:hover {
    box-shadow: var(--elevation-4);
}

/* Form Container */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 8px;
    box-shadow: var(--elevation-2);
    box-sizing: border-box;
}

/* Form Styles */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--divider-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--surface-color);
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
    outline: none;
}

.input-wrapper textarea {
    min-height: 120px;
    resize: vertical;
}

.input-wrapper select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--divider-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--surface-color);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    cursor: pointer;
}

.input-wrapper select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
    outline: none;
}

.input-wrapper select:hover {
    border-color: var(--primary-color);
}

/* Button Container */
.button-container {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

/* Button Styles */
.btn, .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 8em;
    height: 2.75rem;
    padding: 0 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    background: #f5f5f5;
    color: #333333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn:hover, .btn-primary:hover {
    background: #e0e0e0;
    color: #000000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active, .btn-primary:active {
    background: #e0e0e0;
    color: #000000;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn:disabled, .btn-primary:disabled {
    background: #f5f5f5;
    color: #9e9e9e;
    cursor: not-allowed;
    box-shadow: none;
}

.btn .material-icons, .btn-primary .material-icons {
    font-size: 1.25rem;
    color: #333333;
}

/* Button Variants */
.btn-outlined {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-outlined:hover:not(:disabled) {
    background: rgba(25, 118, 210, 0.04);
    box-shadow: none;
}

.btn-text {
    background: transparent;
    color: var(--primary-color);
    box-shadow: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn-text:hover:not(:disabled) {
    background: rgba(25, 118, 210, 0.04);
    box-shadow: none;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.button-group .btn {
    flex: 1;
    min-width: 14em;
}

/* Responsive Button Group */
@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .button-group .btn {
        width: 100%;
    }
    
    .btn, .btn-primary {
        width: 100%;
        min-width: 100%;
        height: 2.5rem;
        font-size: 0.9rem;
    }
    
    .button-container {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Material Button Sizes */
.btn-small {
    height: 28px;
    padding: 0 12px;
    font-size: 0.8125rem;
}

.btn-large {
    height: 48px;
    padding: 0 24px;
    font-size: 0.9375rem;
}

/* Material Button Colors */
.btn-primary {
    color: var(--primary-color);
}

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

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

/* Material Button Groups */
.button-group {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.button-group .btn {
    flex: 1;
    min-width: 120px;
}

/* Material Icon Button */
.btn-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon .material-icons {
    font-size: 24px;
}

/* Material FAB */
.btn-fab {
    width: 56px;
    height: 56px;
    min-width: 56px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--elevation-6);
    background: var(--primary-color);
    color: #fff;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.btn-fab:hover {
    box-shadow: var(--elevation-12);
    transform: translateY(-2px);
}

.btn-fab:active {
    box-shadow: var(--elevation-8);
    transform: translateY(0);
}

.btn-fab .material-icons {
    font-size: 24px;
}

/* Material Button in Forms */
form .btn {
    width: 100%;
    margin-top: 16px;
}

/* Material Button in Tabs */
.tab-content .btn {
    margin: 8px 0;
}

/* Material Tab Styles */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--divider-color);
    padding: 0;
    background: var(--surface-color);
    border-radius: 4px 4px 0 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tabs .btn {
    color: var(--text-secondary);
    padding: 0 1.5rem;
    height: 48px;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.0892857143em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
}

.tabs .btn:hover {
    background: rgba(25, 118, 210, 0.04);
    color: var(--primary-color);
}

.tabs .btn.active {
    color: var(--primary-color);
    background: transparent;
}

.tabs .btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.tabs .btn .material-icons {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

/* Tab Content */
.tab-content {
    padding: 1rem;
    background: var(--surface-color);
    border-radius: 0 0 4px 4px;
    box-shadow: var(--elevation-1);
}

.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

/* Tab Content Button Styles */
.tab-content .btn {
    min-width: 120px;
    height: 40px;
    padding: 0 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: var(--elevation-2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content .btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.tab-content .btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--elevation-4);
    transform: translateY(-1px);
}

.tab-content .btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--elevation-2);
}

.tab-content .btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.tab-content .btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: var(--elevation-4);
    transform: translateY(-1px);
}

.tab-content .btn-outline:active {
    transform: translateY(0);
    box-shadow: var(--elevation-2);
}

.tab-content .button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.tab-content .button-group .btn {
    flex: 1;
    min-width: 120px;
}

@media (max-width: 768px) {
    .tab-content .button-group {
        flex-direction: column;
    }
    
    .tab-content .button-group .btn {
        width: 100%;
    }
}

/* Tab Content Form Button Styles */
.tab-content form .btn {
    width: 100%;
    margin-top: 1rem;
}

.tab-content form .button-group {
    margin-top: 1rem;
}

.tab-content form .button-group .btn {
    margin-top: 0;
}

/* Tab Content Action Button Styles */
.tab-content .btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 120px;
    height: 40px;
    padding: 0 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: var(--primary-color);
    color: #fff;
    border: none;
    box-shadow: var(--elevation-2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content .btn-action:hover {
    background: var(--primary-dark);
    box-shadow: var(--elevation-4);
    transform: translateY(-1px);
}

.tab-content .btn-action:active {
    transform: translateY(0);
    box-shadow: var(--elevation-2);
}

.tab-content .btn-action .material-icons {
    font-size: 1.25rem;
}

/* Tab Content Status Button Styles */
.tab-content .btn-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 100px;
    height: 32px;
    padding: 0 1rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    border: none;
    transition: all 0.3s ease;
}

.tab-content .btn-status.success {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.tab-content .btn-status.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.tab-content .btn-status.warning {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
}

.tab-content .btn-status.info {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

/* Status Message */
.status-message {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.status-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.status-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Required Field */
.required::after {
    content: '*';
    color: var(--error-color);
    margin-left: 0.25rem;
}

/* File Input */
.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

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

.file-input-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--background-color);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--divider-color);
}

.file-input-label:hover {
    background: var(--divider-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
}

.pagination button:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination button:hover:not(:disabled) {
    background: #f0f0f0;
}

/* Remove top app bar styles */
.top-app-bar {
    display: none;
}

/* Page Styles */
.page {
    display: none;
    background-color: var(--surface-color);
    border-radius: 4px;
    box-shadow: var(--elevation-1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.page.active {
    display: block;
}

.page-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
}

/* Input Groups */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--divider-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
}

.input-wrapper textarea {
    min-height: 100px;
    resize: vertical;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0;
}

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

.help-text {
    font-size: 0.875rem;
    color: var(--text-disabled);
    margin-top: 0.25rem;
}

/* Back Button Styles */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-back:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--primary-color);
}

.btn-back .material-icons {
    font-size: 1.25rem;
}

/* Action Button Styles */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.btn-action .material-icons {
    font-size: 1.25rem;
}

/* Floating Action Button */
.btn-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.btn-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-fab:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-fab .material-icons {
    font-size: 1.5rem;
}

/* Status Button Styles */
.btn-status {
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: default;
}

.btn-status.success {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.btn-status.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.btn-status.warning {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
}

.btn-status.info {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--divider-color);
}

.table th {
    background-color: var(--background-color);
    font-weight: 600;
    color: var(--text-secondary);
}

.table tr:hover {
    background-color: var(--background-color);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--divider-color);
    border-radius: 4px;
    background-color: var(--surface-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
    background-color: var(--background-color);
}

.pagination button:disabled {
    background-color: var(--text-disabled);
    color: var(--text-disabled);
    cursor: not-allowed;
}

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

/* File Input */
.file-input-wrapper {
    position: relative;
    display: inline-block;
}

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

.file-input-label {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--background-color);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.file-input-label:hover {
    background-color: var(--divider-color);
}

/* Results Display */
.results-display {
    background-color: var(--background-color);
    border: 1px solid var(--divider-color);
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
    overflow-x: auto;
}

.results-display pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: monospace;
    font-size: 0.875rem;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid var(--text-disabled);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

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

/* Disabled State */
.disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Focus Styles */
:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* Print Styles */
@media print {
    .side-nav,
    .tabs,
    .btn {
        display: none;
    }

    .page {
        box-shadow: none;
    }

    .input-wrapper input,
    .input-wrapper textarea {
        border: 1px solid #000;
    }
}

.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.side-nav {
    width: 60px;
    background: var(--surface-color);
    box-shadow: var(--elevation-4);
    padding: 1rem 0;
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    height: calc(100vh - 60px);
    z-index: 1200;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.side-nav.open {
    width: 250px;
}

.side-nav-header-row {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 1rem;
    white-space: nowrap;
    border-bottom: 1px solid var(--divider-color);
}

.side-nav-header-row h1 {
    opacity: 0;
    transition: opacity 0.2s;
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
    white-space: nowrap;
    display: none;
}

.side-nav.open .side-nav-header-row h1 {
    opacity: 1;
    display: block;
}

.burger-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s;
    min-width: 40px;
    height: 40px;
}

.burger-btn:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 40px;
}

.nav-link .material-icons {
    font-size: 1.5rem;
    min-width: 24px;
}

.nav-link .nav-text {
    opacity: 0;
    transition: opacity 0.2s;
    margin-left: 0.75rem;
    display: none;
}

.side-nav.open .nav-link {
    justify-content: flex-start;
    padding: 0.75rem 1rem;
}

.side-nav.open .nav-text {
    opacity: 1;
    display: block;
}

.nav-link.active, .nav-link:hover {
    background: var(--primary-light);
    color: #fff;
}

@media (min-width: 1024px) {
    .side-nav {
        width: 60px;
    }
    
    .side-nav:hover {
        width: 250px;
    }
    
    .side-nav:hover .nav-text,
    .side-nav:hover .side-nav-header-row h1 {
        opacity: 1;
        display: block;
    }
    
    .side-nav:hover .nav-link {
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }
    
    .main-content {
        margin-left: 60px;
    }
    
    .side-nav:hover + .main-content {
        margin-left: 250px;
    }
    
    .burger-btn {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .side-nav {
        width: 60px;
    }
    
    .side-nav.open {
        width: 250px;
    }
    
    .main-content {
        margin-left: 60px;
    }
    
    .side-nav.open + .main-content {
        margin-left: 250px;
    }
}

/* API Key Status Styles */
.status-active {
    color: #2ecc71;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: rgba(46, 204, 113, 0.1);
}

.status-inactive {
    color: #e74c3c;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: rgba(231, 76, 60, 0.1);
}

/* Results Table Styles */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.results-table th,
.results-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.results-table th {
    background-color: #f8f9fa;
    font-weight: 500;
    color: #495057;
}

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

.results-table tr:hover {
    background-color: #f8f9fa;
}

.page-info {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* Checkbox styles */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid var(--divider-color);
    border-radius: 4px;
    background: var(--surface-color);
    position: relative;
    transition: all 0.2s ease;
}

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

.checkbox-wrapper input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-wrapper input[type="checkbox"]:hover {
    border-color: var(--primary-color);
}

.checkbox-wrapper input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.checkbox-wrapper label {
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.schema-display {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--divider-color);
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    background: var(--surface-color);
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    margin: 0;
    transition: all 0.3s ease;
}

.schema-display:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
    outline: none;
}

.schema-display:hover {
    border-color: var(--primary-color);
}

/* Webhook Management Styles */
#webhooks .tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#webhooks .tab-pane.active {
    display: block;
    opacity: 1;
}

#webhooks .tab {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

#webhooks .tab:hover {
    color: #333;
}

#webhooks .tab.active {
    color: #2196F3;
    border-bottom-color: #2196F3;
}

#webhooks .tab-content {
    padding: 20px 0;
}

/* Status message styles */
.status-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.status-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.status-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Results table styles */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.results-table th,
.results-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.results-table th {
    background-color: #f5f5f5;
    font-weight: 500;
}

.results-table tr:hover {
    background-color: #f9f9f9;
}

.results-table td.success {
    color: #2e7d32;
}

.results-table td.error {
    color: #c62828;
} 