/* Meraki Webhook Service - Consolidated Styles */

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables - Design System */
:root {
    --primary: #667eea;
    --primary-light: #8fa3f3;
    --primary-dark: #4f46e5;
    --secondary: #764ba2;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    min-height: 100vh;
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main page layouts */
.main-page-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 20px 20px 20px;
    gap: 0;
}

.sub-page-body {
    padding: 20px;
}

/* Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
}

/* Navigation Buttons */
.nav-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    transition: background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 40px;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.header p {
    font-size: 1.125rem;
    opacity: 0.95;
}

/* Hero Section */
.hero-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 50px 40px;
    max-width: 800px;
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
}

.hero-section h1 {
    color: #333;
    font-size: 3em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .subtitle {
    color: #666;
    font-size: 1.3em;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.feature h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.feature p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
}

.cta-section h2 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.cta-section p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: white;
    color: var(--primary);
    text-decoration: none;
}

/* Registration Container */
.registration-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 500px;
    width: 100%;
}

.registration-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.registration-header h2 {
    color: #333;
    font-size: 2em;
    margin-bottom: 10px;
}

.registration-header p {
    color: #666;
    font-size: 1.1em;
}

/* Content Areas */
.content {
    padding: 40px;
    line-height: 1.6;
    color: #333;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 1.1em;
}

input[type="text"], 
input[type="password"], 
input[type="url"], 
input[type="email"],
select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

input[type="text"]:focus, 
input[type="password"]:focus, 
input[type="url"]:focus,
input[type="email"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.help-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* Beautiful Select Styling */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23667eea' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 16px;
    background-color: white;
    padding-right: 50px;
    cursor: pointer;
    font-weight: 600;
}

select:hover {
    border-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    background-color: #fafbff;
}

select:focus {
    background-color: #fafbff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23667eea' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

/* Announcement Banners */
.announcements-wrapper {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
}

.announcement-banner {
    margin-bottom: 15px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.5s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.announcement-content-wrapper {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    gap: 18px;
}

.announcement-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.announcement-text {
    flex: 1;
    color: white;
}

.announcement-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.announcement-message {
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.95;
}


/* Announcement Types */
.announcement-info {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-left: 4px solid #1e40af;
}

.announcement-success {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border-left: 4px solid #065f46;
}

.announcement-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-left: 4px solid #b45309;
}

.announcement-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-left: 4px solid #b91c1c;
}

/* Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
        max-height: 200px;
    }
    to {
        transform: translateY(-20px);
        opacity: 0;
        max-height: 0;
    }
}

/* Button Styles */
.btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s ease;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-secondary {
    background: #6c757d;
    margin-right: 10px;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Alert Styles */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    display: none;
}

.alert.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Result Styles */
.result {
    margin-top: 30px;
    padding: 20px;
    border-radius: 10px;
    display: none;
}

.result.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.result.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Webhook URL Display */
.webhook-url {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    word-break: break-all;
    font-family: monospace;
    border-left: 4px solid var(--primary);
}

/* Copy Button Styles */
.copy-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 0.9em;
}

.copy-btn:hover {
    background: #218838;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

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

/* Contact Footer */
.contact-footer {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
    max-width: 800px;
    width: 100%;
}

.contact-footer h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.contact-footer p {
    margin-bottom: 5px;
    opacity: 0.9;
}

.contact-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

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

/* Dashboard Styles */
.nav {
    background: #f8f9fa;
    padding: 15px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    color: #666;
    font-weight: 500;
}

.logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
}

.logout-btn:hover {
    background: #c82333;
}

.login-section {
    padding: 40px;
    text-align: center;
}

.dashboard-content {
    padding: 30px;
    display: none;
}

.dashboard-content.active {
    display: block;
}

.current-config {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary);
}

.current-config h3 {
    color: #333;
    margin-bottom: 15px;
}

.config-item {
    margin-bottom: 10px;
}

.config-label {
    font-weight: 600;
    color: #555;
    display: inline-block;
    min-width: 120px;
}

.config-value {
    font-family: monospace;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    word-break: break-all;
}

.section-divider {
    border-top: 1px solid #e0e0e0;
    margin: 40px 0;
}

/* Instructions Page Styles */
.section {
    margin-bottom: 50px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.section-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.section-header h2 {
    color: var(--primary);
    font-size: 1.5em;
    margin-bottom: 5px;
}

.section-header p {
    color: #666;
    margin: 0;
}

.section-content {
    padding: 30px;
}

.step {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.step-number {
    background: var(--primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    margin-bottom: 10px;
}

.step h3 {
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.step p {
    margin-bottom: 10px;
}

.step ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.step li {
    margin-bottom: 5px;
}

.code {
    background: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    margin: 15px 0;
    overflow-x: auto;
}

.highlight {
    background: #fff3cd;
    padding: 15px;
    border-left: 4px solid #ffc107;
    margin: 20px 0;
    border-radius: 4px;
}

.warning {
    background: #f8d7da;
    padding: 15px;
    border-left: 4px solid #dc3545;
    margin: 20px 0;
    border-radius: 4px;
}

.success {
    background: #d4edda;
    padding: 15px;
    border-left: 4px solid #28a745;
    margin: 20px 0;
    border-radius: 4px;
}

.screenshot {
    background: #f8f9fa;
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    color: #666;
    margin: 15px 0;
    border-radius: 8px;
}

.back-link {
    text-align: center;
    margin-top: 30px;
}

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

.back-link a:hover {
    text-decoration: underline;
}

.toc {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.toc h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.toc ul {
    list-style: none;
    margin-left: 0;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: #333;
    text-decoration: none;
}

.toc a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Terms of Service Styles */
.effective-date {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 30px;
}

.content h2 {
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.content h3 {
    color: #555;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.content p {
    margin-bottom: 15px;
}

.content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.content li {
    margin-bottom: 8px;
}

/* Admin Panel Styles */
.stats-section {
    margin-bottom: 40px;
}

.stats-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
    color: white;
}

.stat-card p {
    font-size: 1.1em;
    opacity: 0.9;
    color: white;
}

/* Table Styles */
.table-section {
    margin-bottom: 40px;
}

.table-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: #f8f9fa;
}

.admin-table th {
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.admin-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.admin-table tbody tr:hover {
    background: #f8f9fa;
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-data h3 {
    margin-bottom: 10px;
    color: #333;
}

.no-data p {
    color: #666;
}

.copy-btn.success {
    background: #28a745;
}

.copy-btn.error {
    background: #dc3545;
}

.na {
    color: #999;
    font-style: italic;
}

.date {
    color: #666;
    font-size: 0.9em;
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

.delete-btn:hover {
    background: #c82333;
}

/* Responsive Design */
@media (max-width: 768px) {
    body.main-page-body {
        padding: 60px 15px 15px 15px;
    }

    body.sub-page-body {
        padding: 15px;
    }

    .nav-buttons {
        position: static;
        justify-content: center;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .hero-section {
        padding: 30px 25px;
        margin-bottom: 20px;
    }

    .hero-section h1 {
        font-size: 2.2em;
    }

    .registration-container {
        padding: 30px 25px;
        max-width: 100%;
    }

    .header {
        padding: 30px 20px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .content {
        padding: 30px 20px;
    }

    .section-header {
        padding: 15px;
    }

    .section-content {
        padding: 20px 15px;
    }

    .step {
        padding: 15px;
    }

    .nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px;
    }

    .dashboard-content, .login-section {
        padding: 20px;
    }

    .btn {
        font-size: 1em;
        padding: 12px 25px;
    }

    .config-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .config-label {
        min-width: auto;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    .table-container {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 800px;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
        font-size: 0.9em;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature {
        padding: 15px;
    }

    .contact-footer {
        margin-top: 30px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8em;
    }

    .hero-section .subtitle {
        font-size: 1.1em;
    }

    .nav-btn {
        padding: 6px 12px;
        font-size: 0.8em;
    }

    .registration-header h2 {
        font-size: 1.6em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    .stat-card h3 {
        font-size: 2em;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px 6px;
        font-size: 0.8em;
    }
}

/* Dashboard Improvements */
.webhook-configurations {
    margin-bottom: 30px;
}

.webhook-configurations h3 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* Webhook Configuration Cards - Improved */
.config-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.config-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.config-card.selected {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, rgba(59, 130, 246, 0.02) 100%);
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: nowrap;
}

.config-header h4 {
    margin: 0;
    color: #1e293b;
    font-weight: 600;
    font-size: 1.1em;
}

.config-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.875em;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-block;
    width: auto !important;
}

.btn-small:not(.btn-danger) {
    background: #3b82f6;
    color: white;
}

.btn-small:not(.btn-danger):hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.config-details {
    display: grid;
    gap: 16px;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.config-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.config-value {
    color: #1f2937;
    font-family: 'SF Mono', Monaco, 'Menlo', 'Cascadia Code', 'Roboto Mono', 'Consolas', 'Courier New', monospace;
    font-size: 0.875em;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    word-break: break-all;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
}

/* Dashboard Form Improvements */
.form-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.form-section h3 {
    color: #1e293b;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-description {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

.dashboard-content form {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.dashboard-content .form-group {
    margin-bottom: 20px;
}

.dashboard-content label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-weight: 600;
    font-size: 0.875em;
}

.dashboard-content input[type="text"],
.dashboard-content input[type="url"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
    color: #1f2937;
}

.dashboard-content input[type="text"]:focus,
.dashboard-content input[type="url"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Inline Editing Styles */
.config-value-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.config-input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #3b82f6;
    border-radius: 6px;
    font-size: 0.875em;
    font-family: 'SF Mono', Monaco, 'Menlo', 'Cascadia Code', 'Roboto Mono', 'Consolas', 'Courier New', monospace;
    background: white;
    color: #1f2937;
    transition: all 0.2s ease;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
}

.config-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.config-card.editing {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, rgba(59, 130, 246, 0.03) 100%);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

.copy-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: #10b981;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .config-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .config-actions {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
    
    .config-card {
        padding: 20px;
    }
    
    .config-value {
        font-size: 0.8em;
        padding: 10px 12px;
    }
    
    .config-input {
        font-size: 0.8em;
        padding: 6px 10px;
    }
    
    .config-value-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .copy-btn {
        align-self: flex-start;
    }
}

/* Firefox-specific fixes */
@-moz-document url-prefix() {
    .config-header {
        display: -moz-box;
        display: -webkit-flex;
        display: flex;
        -webkit-justify-content: space-between;
        justify-content: space-between;
        -webkit-align-items: center;
        align-items: center;
    }
    
    .config-actions {
        display: -moz-box;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-direction: row;
        flex-direction: row;
        gap: 8px;
    }
    
    .btn-small {
        display: -moz-inline-box;
        display: -webkit-inline-flex;
        display: inline-flex;
        -webkit-align-items: center;
        align-items: center;
        -webkit-justify-content: center;
        justify-content: center;
        width: auto;
        flex: none;
        -webkit-flex: none;
    }
    
    .config-card {
        display: block;
        width: 100%;
    }
    
    .config-details {
        display: block;
        width: 100%;
    }
    
    .config-item {
        display: block;
        margin-bottom: 16px;
        width: 100%;
    }
    
    .config-value-container {
        display: -moz-box;
        display: -webkit-flex;
        display: flex;
        -webkit-align-items: center;
        align-items: center;
        gap: 10px;
        width: 100%;
    }
}