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

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    /* Blue link colors */
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--black);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 100vh;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-container {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: none;
    overflow-x: hidden;
}

.content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 1rem;
    gap: 2rem;
}

/* Header */
.app-header {
    text-align: center;
    padding: 3rem 1rem 2rem;
    border-bottom: 1px solid var(--gray-800);
    margin-bottom: 0;
    flex-shrink: 0;
    background: var(--black);
}

.app-header h1 {
    font-size: 2rem;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.app-header h1 a {
    text-decoration: none;
    border: none;
    display: inline-block;
}

.app-header h1 a:hover {
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.app-header .subtitle {
    font-size: 1rem;
    color: var(--gray-400);
    text-align: center;
    display: block;
    font-weight: 400;
}

.app-header .subtitle a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--gray-700);
    border-radius: var(--radius);
    margin-left: 1rem;
    transition: all 0.2s ease;
}

.app-header .subtitle a:hover {
    background: var(--white);
    color: var(--black);
}

#site-logo {
    max-height: 40px;
    width: auto;
    vertical-align: middle;
}

/* Content Wrapper & Cards */
.card {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(180deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--white);
    border: 1px solid var(--gray-700);
    transition: all 0.3s ease;
}

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

.card h2 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-700);
    padding-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* Text Area */
textarea#textContent {
    width: 100%;
    min-height: 480px;
    padding: 1.5rem;
    border: 2px solid var(--gray-700);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background-color: var(--gray-900);
    color: var(--white);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Consolas', monospace;
}

textarea#textContent:focus {
    border-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    outline: none;
    background-color: var(--black);
}

textarea#textContent::placeholder {
    color: var(--gray-500);
}

/* Input Groups (for edit code) */
.input-group {
    margin-bottom: 1.5rem;
}

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

.input-group input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-700);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    background-color: var(--gray-900);
    color: var(--white);
    transition: all 0.2s ease;
}

.input-group input[type="text"]:focus {
    border-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    outline: none;
    background-color: var(--black);
}

.input-group input[type="text"]::placeholder {
    color: var(--gray-500);
}

/* Buttons */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-start;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--gray-700);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.2s ease;
    background-color: var(--gray-900);
    color: var(--white);
    min-width: 120px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--gray-600);
}

.btn-secondary:hover {
    background-color: var(--gray-800);
    border-color: var(--gray-500);
}

.btn-warning {
    background-color: var(--gray-100);
    color: var(--black);
    border-color: var(--gray-300);
}

.btn-warning:hover {
    background-color: var(--gray-200);
    border-color: var(--gray-400);
}

.btn:disabled {
    background-color: var(--gray-800);
    color: var(--gray-500);
    border-color: var(--gray-700);
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Info Area Specifics */
#info-area .info-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--gray-800);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-700);
}

#info-area .info-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 500;
    font-size: 0.875rem;
}

#info-area .link-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

#info-area a {
    color: var(--blue-400);
    text-decoration: none;
    word-break: break-all;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Consolas', monospace;
    font-size: 0.75rem;
}

#info-area a:hover {
    color: var(--blue-300);
    text-decoration: underline;
}

.code-display {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Consolas', monospace;
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    word-break: break-all;
    font-size: 0.75rem;
    border: 1px solid var(--gray-700);
}

.warning-text {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.5rem;
    font-style: italic;
}

.success-message {
    color: var(--white);
    background-color: var(--gray-800);
    border: 1px solid var(--gray-600);
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

/* Copy Button */
.btn-copy {
    background: var(--gray-800);
    border: 1px solid var(--gray-600);
    color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    min-width: auto;
}

.btn-copy:hover {
    background-color: var(--gray-700);
    border-color: var(--gray-500);
    transform: none;
}


/* View Area Specifics */
#view-area .note-content-box {
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: none;
    resize: none;
    box-sizing: border-box;
    display: block;
}

.note-content-box {
    background-color: #23272a;
    padding: 20px;
    border: 1px solid #333;
    border-radius: 8px;
    white-space: pre-wrap; 
    word-wrap: break-word; 
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 0.95em;
    line-height: 1.7;
    max-height: 500px; /* Max height with scroll for long notes */
    overflow-y: auto;
    color: #e0e0e0;
    text-decoration: none;
}
/* Styling for links generated by linkify function */
.note-content-box a {
    color: var(--blue-400);
    text-decoration: none;
}
.note-content-box a:hover {
    color: var(--blue-300);
}

.timestamp {
    font-size: 0.9em;
    color: #6c757d;
    text-align: right;
    margin-top: 15px;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 30px;
    font-size: 1.1em;
    color: #007bff;
}
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #007bff;
    animation: spin 1s ease infinite;
    margin: 0 auto 10px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.alert { /* General alert styling */
    padding: 12px 18px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-size: 0.95rem;
    background-color: #23272a;
    color: #ffc107;
    border: 1px solid #ffc107;
}
.alert-danger { /* Specific for error messages */
    color: #721c24; /* Dark red text */
    background-color: #2d1a1a;
    border: 1px solid #ffb3b3;
}


/* Footer */
.app-footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px; /* Pushes footer down */
    border-top: 1px solid #23272a;
    font-size: 0.9rem;
    color: #b0b0b0;
    text-align: center;
    background: none;
}

.copyright-text {
    text-align: center;
    width: 100%;
    display: block;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-container, .content-wrapper, .card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0;
        margin: 0;
        border-radius: 0;
        box-sizing: border-box;
    }
    
    .card {
        padding: 1rem;
        min-height: 70vh;
        background: var(--black);
        border: none;
    }
    
    .app-header {
        padding: 1rem 0 0.5rem 0;
        margin-bottom: 0.5rem;
    }
    
    .app-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .app-header .subtitle {
        font-size: 0.875rem;
        margin-bottom: 0;
    }
    
    .app-footer {
        padding: 1rem 0;
        font-size: 0.75rem;
        margin-top: 10px;
    }
    .footer-links {
        margin-top: 4px;
    }
    .footer-links a {
        font-size: 0.95rem;
        margin: 0 5px;
    }
    .button-group {
        gap: 6px;
        margin-top: 8px;
    }
    .btn {
        font-size: 1.2em;
        padding: 8px 10px;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
    textarea#textContent {
        font-size: 1.05rem;
        padding: 10px;
        min-height: 180px;
    }
    /* #view-area .note-content-box {
        min-height: 200px;
        font-size: 1.05rem;
        padding: 10px;
    } */
    .content-size-display {
        font-size: 0.85rem;
        padding: 3px 6px;
    }
    .note-content-box a {
        font-size: 0.85em;
    }
    .note-content-box {
        font-size: 0.85em;
        padding: 8px;
    }
    .code-access-row {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        margin-bottom: 10px;
        margin-top: 0;
        width: 100%;
    }
    .code-access-input {
        width: 100%;
        font-size: 1rem;
        padding: 10px 12px;
        border-radius: 8px;
        flex: 1 1 auto;
    }
    #codeAccessButton.btn {
        width: auto;
        min-width: 48px;
        font-size: 0.92rem;
        padding: 6px 12px;
        border-radius: 6px;
        flex: 0 0 auto;
    }
}

/* Rate Limit Alert */
.rate-limit-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #23272a;
    color: #ffc107;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(120%);
    transition: transform 0.3s ease-in-out;
    max-width: 400px;
}

.rate-limit-alert.show {
    transform: translateX(0);
}

.rate-limit-alert .alert-icon {
    font-size: 24px;
}

.rate-limit-alert .alert-content {
    flex: 1;
}

.rate-limit-alert .alert-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.rate-limit-alert .alert-message {
    font-size: 14px;
    opacity: 0.9;
}

.rate-limit-alert .close-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    font-size: 20px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.rate-limit-alert .close-button:hover {
    opacity: 1;
}

/* Content Size Display */
.button-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    gap: 10px;
}

.button-row .button-group {
    display: flex;
    gap: 10px;
}

.content-size-display {
    font-size: 0.95rem;
    color: #b0b0b0;
    background-color: #23272a;
    border-radius: 4px;
    border: 1px solid #333;
    padding: 5px 14px;
    margin: 0;
    min-width: 110px;
    text-align: right;
    box-sizing: border-box;
    display: block;
    float: none;
}

.content-size-display.size-warning {
    color: #ffc107;
    background-color: #2d1a1a;
    border: 1px solid #ffc107;
}

/* Clear float after the size display */
#textContent {
    clear: both;
}

/* General styles for policy pages */
body {
    line-height: 1.6;
}

/* Policy page container - centered and clean */
.main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--black);
    color: var(--gray-100);
    min-height: 100vh;
}

/* Policy page typography */
.main-container h1 {
    color: var(--white);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    border-bottom: 2px solid var(--gray-700);
    padding-bottom: 1rem;
}

.main-container h2 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    border-bottom: 1px solid var(--gray-700);
    padding-bottom: 0.5rem;
}

.main-container h3 {
    color: var(--gray-200);
    font-size: 1.25rem;
    font-weight: 500;
    margin: 1.5rem 0 0.75rem 0;
}

.main-container p {
    color: var(--gray-200);
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: left;
}

.main-container ul {
    margin: 1rem 0 1rem 2rem;
    color: var(--gray-200);
}

.main-container li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Back to home link styling */
.main-container > a {
    display: inline-block;
    margin-top: 3rem;
    padding: 0.75rem 1.5rem;
    background: var(--gray-800);
    color: var(--blue-400);
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid var(--gray-700);
    font-weight: 500;
    transition: all 0.2s ease;
}

.main-container > a:hover {
    background: var(--gray-700);
    color: var(--blue-300);
    transform: translateY(-1px);
}

/* Email links */
.main-container a[href^="mailto:"] {
    color: var(--blue-400);
    text-decoration: underline;
    text-decoration-color: var(--blue-500);
    text-underline-offset: 2px;
}

.main-container a[href^="mailto:"]:hover {
    color: var(--blue-300);
    text-decoration-color: var(--blue-400);
}

a {
    color: var(--blue-400);
    text-decoration: none;
}

a:hover {
    color: var(--blue-300);
    text-decoration: underline;
}

/* Responsive design for policy pages */
@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
        max-width: 100%;
    }
    
    .main-container h1 {
        font-size: 2rem;
    }
    
    .main-container h2 {
        font-size: 1.25rem;
    }
    
    .main-container ul {
        margin-left: 1.5rem;
    }
}

.footer-links {
    text-align: center;
    margin-top: 10px;
}
.footer-links a {
    margin: 0 10px;
    color: var(--blue-400);
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--blue-300);
}

.code-access-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 6px;
    margin-top: 0;
    width: 100%;
}
.code-access-input {
    width: 140px;
    padding: 6px 10px;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: #181a1b;
    color: #e0e0e0;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.code-access-input:focus {
    border-color: #4f8cff;
    box-shadow: 0 0 0 2px rgba(79, 140, 255, 0.12);
}
#codeAccessButton.btn {
    padding: 6px 14px;
    font-size: 0.95rem;
    border-radius: 6px;
}

/* Editor Tabs */
.editor-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.tab-button {
    padding: 8px 16px;
    border: none;
    background: none;
    color: #b0b0b0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.tab-button:hover {
    color: #e0e0e0;
}

.tab-button.active {
    color: #4f8cff;
    border-bottom: 2px solid #4f8cff;
}

.markdown-guide-link {
    margin-left: auto;
    color: #b0b0b0;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.markdown-guide-link:hover {
    color: #e0e0e0;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
}

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

/* Markdown Preview and Content */
.markdown-preview,
.markdown-content {
    width: 100%;
    max-width: 100%;
    min-height: 480px;
    padding: 1.5rem;
    border: 1px solid var(--gray-700);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    background-color: var(--gray-900);
    color: var(--gray-100);
    overflow-wrap: break-word;
    box-sizing: border-box;
}

/* Markdown Styling */
.markdown-preview h1,
.markdown-content h1 {
    font-size: 2em;
    margin: 0.67em 0;
    color: var(--white);
    font-weight: 600;
}

.markdown-preview h2,
.markdown-content h2 {
    font-size: 1.5em;
    margin: 0.83em 0;
    color: var(--white);
    font-weight: 600;
}

.markdown-preview h3,
.markdown-content h3 {
    font-size: 1.17em;
    margin: 1em 0;
    color: var(--white);
    font-weight: 600;
}

.markdown-preview p,
.markdown-content p {
    margin: 1em 0;
    color: var(--gray-200);
}

.markdown-preview ul,
.markdown-content ul,
.markdown-preview ol,
.markdown-content ol {
    margin: 1em 0;
    padding-left: 2em;
    color: var(--gray-200);
}

.markdown-preview li,
.markdown-content li {
    margin: 0.5em 0;
}

.markdown-preview blockquote,
.markdown-content blockquote {
    margin: 1em 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--gray-400);
    background-color: var(--gray-800);
    border-radius: var(--radius);
    color: var(--gray-300);
    font-style: italic;
}

.markdown-preview code,
.markdown-content code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Consolas', monospace;
    padding: 0.25rem 0.5rem;
    background-color: var(--gray-800);
    border-radius: var(--radius);
    color: var(--gray-200);
    font-size: 0.875em;
}

.markdown-preview pre,
.markdown-content pre {
    margin: 1em 0;
    padding: 1.5rem;
    background-color: var(--gray-900);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    border: 1px solid var(--gray-700);
}

.markdown-preview pre code,
.markdown-content pre code {
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}

.markdown-preview a,
.markdown-content a {
    color: var(--blue-400);
    text-decoration: underline;
    text-decoration-color: var(--blue-500);
    text-underline-offset: 2px;
}

.markdown-preview a:hover,
.markdown-content a:hover {
    color: var(--blue-300);
    text-decoration-color: var(--blue-400);
}

.markdown-preview table,
.markdown-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
    background-color: var(--gray-900);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-700);
}

.markdown-preview th,
.markdown-content th,
.markdown-preview td,
.markdown-content td {
    border: 1px solid var(--gray-700);
    padding: 0.75rem;
}

.markdown-preview th,
.markdown-content th {
    background-color: var(--gray-800);
    color: var(--white);
    font-weight: 600;
}

.markdown-preview td,
.markdown-content td {
    color: var(--gray-200);
}

.markdown-preview img,
.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.markdown-preview hr,
.markdown-content hr {
    border: none;
    border-top: 1px solid var(--gray-700);
    margin: 2em 0;
}


/* Sticky handled globally for better consistency */

/* Additional responsive styles */
@media (max-width: 480px) {
    .markdown-preview,
    .markdown-content {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 2000; }
.modal-content { width: 90%; max-width: 520px; background: var(--gray-900); border: 1px solid var(--gray-700); border-radius: var(--radius-lg); padding: 1rem; color: var(--white); }
.modal-content h3 { margin-bottom: 0.75rem; }
.modal-content label { display:block; font-size:0.9rem; margin-top: 4px; margin-bottom: 4px; }
.modal-content select, .modal-content textarea { width: 100%; background: var(--gray-900); color: var(--white); border: 1px solid var(--gray-700); border-radius: var(--radius); padding: 8px; }
.modal-actions { display:flex; gap:8px; margin-top: 10px; }


