.log-age {
    font-size: 12px;
    color: #888;
    text-align: center;
    min-width: 60px;
    white-space: nowrap;
}

/* Error and Info Message Styling */
.error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
}

.error h3 {
    margin-top: 0;
    color: #a22;
}

.info {
    background: #e8f4fd;
    border: 1px solid #b8daff;
    color: #004085;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
}

.loading {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
}

/* Simple, modern, and consistent styling for the portfolio site */
/* Updated styling for contact forms and admin pages */
body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background: #f8f9fa;
    color: #222;
    margin: 0;
    padding: 20px;
}

.wrap {
    max-width: none; /* Allow full width usage across all pages */
    margin: 0;
    padding: 0 20px; /* Add horizontal padding to prevent content from touching edges */
}

/* Specific pages that need content width constraints */
.google-oauth-admin .wrap,
.linkedin-oauth-admin .wrap {
    margin: 0 auto;
    padding: 0 20px;
}

/* Site Header Styles */
.site-header {
    margin-bottom: 30px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
    padding: 0 20px; /* Add horizontal padding to prevent H1 from touching edges */
}

.header-left {
    flex: 1;
}

.header-right {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
/* --- Compact log styles for logs page --- */
.log-level {
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
    min-width: 32px;
    text-align: center;
}
.log-level-DEBUG { background: #bbb; color: #222; }
.log-level-INFO { background: #bde5f8; color: #222; }
.log-level-WARNING { background: #ffe9b3; color: #222; }
.log-level-ERROR { background: #f8d7da; color: #b30000; }

.log-message {
    max-width: 320px;
    word-wrap: break-word;
    font-size: 13px;
}

.log-timestamp, .log-module {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.title-container {
    position: relative;
    margin-bottom: 5px; /* Small gap between title area and tagline */
}

.brand {
    position: relative;
    width: fit-content; /* Ensures the container wraps the content properly */
    margin: 0; /* Remove negative margin that was pushing H1 too far left */
}

.brand a {
    text-decoration: none;
    color: #333;
    font-size: 2.2em; /* Increased from 2em - slightly larger */
    font-weight: bold;
}

.tagline {
    color: #666;
    margin: 5px 0 0 0; /* Move closer to H1 - reduced top margin */
}

/* Social Links in Navigation */
.social-links {
    display: flex !important;
    gap: 15px;
    align-items: center;
    margin-left: auto; /* Push social links to the far right */
}

.social-links a {
    text-decoration: none !important;
    color: #333 !important;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background-color: #f0f0f0;
    text-decoration: underline !important;
}

/* Authentication and admin links */
.auth-admin-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    font-size: 0.9em;
}

.auth-link {
    background-color: #666;
    color: white !important;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
}

.auth-link:hover {
    background-color: #555;
    text-decoration: none;
}

.auth-separator {
    color: #666;
    margin: 0 5px;
    font-size: 0.9em;
}

.admin-login-link {
    background-color: #8e44ad !important;
}

.admin-login-link:hover {
    background-color: #7d3c98 !important;
}

.logout-link {
    background-color: #444;
}

.logout-link:hover {
    background-color: #333;
}

.disconnect-link {
    background-color: #777;
    font-size: 0.8em;
}

.disconnect-link:hover {
    background-color: #666;
}

.admin-links {
    display: flex;
    gap: 8px;
    margin-top: 5px;
    justify-content: flex-end;
}

.admin-link {
    background-color: #777;
    color: white !important;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    text-decoration: none;
}

.admin-link:hover {
    background-color: #666;
    text-decoration: none;
}

/* Navigation Styles */
nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.primary-nav {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Admin Navigation Styling */
.admin-section {
    margin-top: 0;
    padding: 8px 12px;
    border: 1px solid #ffb300;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* Full width admin top bar */
.admin-top-bar {
    width: 100%;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ffb300;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    margin-bottom: 10px;
}

.admin-section-spread {
    display: flex;
    align-items: center;
    flex-grow: 1;
    gap: 20px;
}

.admin-section-spread .admin-section-label {
    font-size: 0.7em;
    font-weight: 600;
    color: #ffbb00;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin-right: 10px;
}

.admin-nav-spread {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-grow: 1;
}

.admin-nav-spread li {
    list-style: none;
}

.admin-nav-spread a {
    color: #d59a04;
    font-weight: 500;
    font-size: 0.85em;
    padding: 4px 8px;
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
}

.admin-nav-spread a:hover {
    color: #da950a;
    background-color: #e7f3ff;
    border-color: #ffb300;
}

.admin-nav-spread li.active a {
    background-color: #eebd08;
    color: white;
    border-color: #ffb300;
}

.admin-section-label {
    font-size: 0.7em;
    font-weight: 600;
    color: #ffbb00;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    text-align: center;
}

.admin-nav {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.admin-nav li {
    list-style: none;
}

.admin-nav a {
    color: #d59a04;
    font-weight: 500;
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
}

.admin-nav a:hover {
    color: #da950a;
    background-color: #e7f3ff;
}

.admin-nav li.active a {
    background-color: #eebd08;
    color: white;
}

nav a {
    text-decoration: none;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

nav a:hover {
    text-decoration: underline;
}

/* Active page indicator */
nav li.active a {
    background-color: #333;
    color: white;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
}

nav li.active a:hover {
    text-decoration: none;
}

/* Icon styling for social links */
.linkedin a::before {
    content: "🔗";
    margin-right: 4px;
}

.github a::before {
    content: "🐙";
    margin-right: 4px;
}

.pypi a::before {
    content: "📦";
    margin-right: 4px;
}

/* Content Styles */
.bc {
    margin-top: 40px; /* Doubled spacing between header and content for better visual separation */
}

/* Hero Section Styles */
.intro-flex {
    margin-bottom: 40px;
    overflow: hidden; /* Creates block formatting context for float clearance */
}

.hero-content {
    overflow: hidden; /* Allows text to wrap around floated image */
}

.hero-content h2 {
    font-size: 1.8em;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    margin: 0 0 20px 0;
}

.hero-content p:last-child {
    margin-bottom: 0;
}

.hero-content em {
    color: #666;
    font-style: italic;
    font-size: 1.05em;
}

.about {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.main-content {
    clear: both; /* Ensures main content starts below floated elements */
    margin-top: 30px;
    background: rgba(248, 249, 250, 0.5);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.main-content h3 {
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px 0;
    line-height: 1.3;
    position: relative;
}

.main-content h3:first-child {
    margin-top: 0;
}

.main-content h3:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #0066cc, #4dabf7);
    border-radius: 2px;
}

.main-content p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    margin: 0 0 20px 0;
}

.main-content p strong a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(77, 171, 247, 0.1));
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.main-content p strong a:hover {
    text-decoration: underline;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.2), rgba(77, 171, 247, 0.2));
    transform: translateY(-1px);
}

/* Profile Image Styles */
.profile-image {
    float: left;
    width: 280px;
    margin: 0 30px 20px 0;
    text-align: center;
}

.profile-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.amp {
    font-family: serif;
    font-size: 1.2em;
    color: #888;
}

.tech {
    background: #f1f3f6;
    border-radius: 8px;
    padding: 18px 22px;
    margin-top: 18px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.footer {
    margin-top: 10px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    text-align: center;
    color: #666;
}

/* Admin Page Styles */
.work-admin-content, .projects-admin-content {
    margin-top: 20px;
}

#grid {
    margin-top: 20px;
    overflow-x: auto;
}

#grid table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#grid th, #grid td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

#grid th {
    background-color: #f8f9fa;
    font-weight: bold;
}

#grid tr:nth-child(even) {
    background-color: #f9f9f9;
}

.crud-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.crud-buttons button {
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
}

#addBtn {
    background-color: #555;
    color: white;
}

#addBtn:hover {
    background-color: #666;
}

#deleteBtn {
    background-color: #444;
    color: white;
}

#deleteBtn:hover {
    background-color: #555;
}

.loading {
    color: #666;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

.error {
    color: red;
    padding: 20px;
    text-align: center;
}

input[type="checkbox"] {
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bc {
        flex-direction: column;
    }

    /* Hero section mobile styles */
    .profile-image {
        float: none;
        width: 200px;
        margin: 0 auto 25px auto;
        display: block;
    }

    .hero-content h2 {
        font-size: 1.5em;
        text-align: center;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1em;
        text-align: center;
    }

    .main-content {
        margin-top: 20px;
        padding: 20px;
    }

    .main-content h3 {
        font-size: 1.3em;
        margin: 25px 0 12px 0;
    }

    .main-content h3:first-child {
        margin-top: 0;
    }

    .main-content p {
        font-size: 1em;
    }

    figure img {
        max-width: 100%;
    }

    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .auth-admin-section {
        align-items: flex-start;
    }

    /* Mobile-friendly auth links */
    .auth-link {
        padding: 12px 20px;
        font-size: 1em;
        min-height: 44px; /* Apple's recommended minimum touch target */
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation; /* Prevent zoom on double-tap */
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }

    /* Admin top bar mobile styles */
    .admin-top-bar {
        flex-direction: column;
        padding: 10px 15px;
        gap: 10px;
    }

    .admin-section-spread {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }

    .admin-nav-spread {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .admin-nav-spread a {
        padding: 8px 12px;
        font-size: 0.9em;
        display: block;
        text-align: center;
        border: 1px solid #ffb300;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .primary-nav {
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

    .crud-buttons {
        flex-direction: column;
    }

    .crud-buttons button {
        width: 100%;
    }
}

/* Mobile phone responsive styles */
@media (max-width: 480px) {
    .profile-image {
        width: 160px;
        margin: 0 auto 20px auto;
    }

    .hero-content h2 {
        font-size: 1.3em;
        margin-bottom: 12px;
    }

    .hero-content p {
        font-size: 0.95em;
        line-height: 1.5;
    }

    .main-content h3 {
        font-size: 1.2em;
        margin: 20px 0 10px 0;
    }

    .main-content h3:first-child {
        margin-top: 0;
    }

    .main-content {
        padding: 15px;
    }

    .main-content p {
        font-size: 0.95em;
        line-height: 1.5;
    }

    .bc {
        margin-top: 20px;
    }

    .intro-flex {
        margin-bottom: 25px;
    }
}

/* LinkedIn Integration Info */
.linkedin-info {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.linkedin-info h4 {
    margin-top: 0;
    color: #0066cc;
}

.linkedin-info ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.linkedin-info li {
    margin-bottom: 5px;
}



/* ===== GENERAL CONTENT STYLING ===== */
.main-content {
    margin: 0 auto;
    padding: 40px 20px;
}

.content-header h1,
.content-header h2 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
}

/* ===== ADMIN PAGE CORRECTIONS ===== */
.work-admin-content h2,
.projects-admin-content h2,
.linkedin-admin-content h2 {
    border-bottom: 2px solid #333;
}

.linkedin-info {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
}

.linkedin-info h4 {
    color: #333;
}

/* ===== LINKEDIN CONFIGURATION STYLES ===== */
.config-section,
.oauth-section {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.config-section h3,
.oauth-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    font-size: 1.3em;
}

.config-form .form-group {
    margin-bottom: 18px;
}

.form-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.config-status {
    margin-top: 25px;
    padding: 20px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.config-status h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1em;
}

.connection-status {
    padding: 20px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.connection-status p {
    margin: 0 0 15px 0;
    font-weight: 600;
    font-size: 1.1em;
}

.connection-status .note {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    font-style: italic;
    margin-top: 10px;
}

#connection-details {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 14px;
    color: #333;
    border: 1px solid #e9ecef;
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn:disabled:hover {
    background-color: #ccc;
    transform: none;
}

/* Responsive adjustments for config forms */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Configuration status items */
.config-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.config-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.config-item:last-child {
    border-bottom: none;
}

.config-label {
    font-weight: 600;
    color: #333;
}

.config-value {
    color: #666;
}

.config-value.configured {
    color: #28a745;
    font-weight: 600;
}

.config-value.missing {
    color: #dc3545;
    font-weight: 600;
}

/* ===== WORK ADMIN FORM STYLING ===== */
.form-container {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-top: 30px;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-wrapper {
    padding: 30px;
}

.form-container h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    font-size: 1.4em;
}

.work-item-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.work-item-form .form-group {
    margin-bottom: 20px;
}

.work-item-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0;
}

.work-item-form input,
.work-item-form textarea,
.work-item-form select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    color: #333;
    box-sizing: border-box;
}

.work-item-form input:focus,
.work-item-form textarea:focus,
.work-item-form select:focus {
    outline: none;
    border-color: #666;
    background-color: #fafafa;
}

.work-item-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-note {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Work items table styling */
.work-items-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.work-items-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.work-items-table tbody tr:hover {
    background-color: #f8f9fa;
}

.work-items-table .btn-small {
    padding: 6px 12px;
    font-size: 14px;
    margin: 0;
}

/* Projects table styling */
.projects-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.projects-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

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

.projects-table .btn-small {
    padding: 6px 12px;
    font-size: 14px;
    margin: 0;
}

/* Message styling */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid;
    font-weight: 600;
}

.message.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.message.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.message.info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Status message system for admin pages */
.status-message {
    position: relative;
    padding: 12px 40px 12px 16px;
    margin: 15px 0;
    border-radius: 6px;
    border: 1px solid;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(0);
}

.status-message.success {
    background-color: #f8fff8;
    border-color: #e8f5e8;
    color: #2d5a2d;
    border-left: 4px solid #28a745;
}

.status-message.success::before {
    content: "✓";
    font-weight: bold;
    color: #28a745;
}

.status-message.error {
    background-color: #fff8f8;
    border-color: #f5e8e8;
    color: #5a2d2d;
    border-left: 4px solid #dc3545;
}

.status-message.error::before {
    content: "✗";
    font-weight: bold;
    color: #dc3545;
}

.status-message.info {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #495057;
    border-left: 4px solid #6c757d;
}

.status-message.info::before {
    content: "ℹ";
    font-weight: bold;
    color: #6c757d;
}

/* Test Results Styles */
.test-results-container {
    margin: 15px 0;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background: #fafafa;
}

.test-success {
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    margin: 10px 0;
}

.test-error {
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    margin: 10px 0;
}

.test-results {
    padding: 15px;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 4px;
    color: #0d47a1;
    margin: 10px 0;
}

.status-message.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.status-message .close-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: inherit;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.status-message .close-btn:hover {
    background-color: rgba(0,0,0,0.1);
}

/* Status message container */
.status-messages {
    position: relative;
    z-index: 100;
}

/* Responsive design for forms */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-wrapper {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .work-items-table {
        font-size: 14px;
    }
    
    .work-items-table th,
    .work-items-table td {
        padding: 8px;
    }
}

/* Checkbox styling */
.dijitDialogPaneContentArea .dijitCheckBox {
    width: auto !important;
    margin-right: 8px;
}

/* Force white background on all dialog elements */
.dijitDialog table,
.dijitDialog td,
.dijitDialog div {
    background: transparent !important;
}

.dijitDialogPaneContentArea table,
.dijitDialogPaneContentArea td,
.dijitDialogPaneContentArea div {
    background: transparent !important;
}

/* Nuclear option: Override ALL possible blue backgrounds */
.dijitDialog *,
.dijitDialog *:before,
.dijitDialog *:after {
    background: white !important;
    background-color: white !important;
    background-image: none !important;
}

.dijitDialogPaneContentArea,
.dijitDialogPaneContentArea *,
.dijitDialogPaneContentArea *:before,
.dijitDialogPaneContentArea *:after {
    background: white !important;
    background-color: white !important;
    background-image: none !important;
    color: #333 !important;
}

/* Extremely aggressive blue color elimination */
*[style*="#abd6ff"],
*[style*="rgb(171, 214, 255)"],
*[style*="171, 214, 255"] {
    background: white !important;
    background-color: white !important;
}

/* Target specific Claro theme classes */
.claro .dijitDialog,
.claro .dijitDialogPaneContentArea,
.claro .dijitDialogContent,
.claro .dijitDialogTitleBar {
    background: white !important;
    background-color: white !important;
    background-image: none !important;
}

/* Override any computed styles for these specific colors */
.dijitDialog,
.dijitDialogPaneContentArea,
.dijitDialogContent {
    background: white !important;
    background-color: white !important;
}

/* Final override for any remaining blue elements */
[style*="background"] {
    background: white !important;
}

[style*="background-color"] {
    background-color: white !important;
}

/* Comprehensive dialog styling for readability */
.dijitDialog {
    background: white !important;
    background-color: white !important;
    background-image: none !important;
    border: 2px solid #ccc !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
}

.dijitDialogPaneContentArea {
    background: white !important;
    background-color: white !important;
    background-image: none !important;
    padding: 20px !important;
    color: #333 !important;
}

.dijitDialogTitleBar {
    background: #f8f9fa !important;
    background-color: #f8f9fa !important;
    background-image: none !important;
    border-bottom: 1px solid #dee2e6 !important;
    color: #333 !important;
    font-weight: 600 !important;
}

/* Form styling within dialogs */
.dijitDialog label,
.dijitDialogPaneContentArea label {
    display: block !important;
    margin-bottom: 5px !important;
    font-weight: 600 !important;
    color: #333 !important;
    background: transparent !important;
    font-size: 14px !important;
}

.dijitDialog input,
.dijitDialog textarea,
.dijitDialogPaneContentArea input,
.dijitDialogPaneContentArea textarea,
.dijitDialog .dijitTextBox,
.dijitDialog .dijitTextarea,
.dijitDialog .dijitNumberTextBox,
.dijitDialogPaneContentArea .dijitTextBox,
.dijitDialogPaneContentArea .dijitTextarea,
.dijitDialogPaneContentArea .dijitNumberTextBox {
    background: white !important;
    background-color: white !important;
    border: 2px solid #ccc !important;
    border-radius: 6px !important;
    padding: 12px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    color: #333 !important;
    font-size: 14px !important;
    font-family: 'Segoe UI', 'Arial', sans-serif !important;
    transition: border-color 0.2s ease !important;
}

.dijitDialog input:focus,
.dijitDialog textarea:focus,
.dijitDialogPaneContentArea input:focus,
.dijitDialogPaneContentArea textarea:focus,
.dijitDialog .dijitTextBox:focus,
.dijitDialog .dijitTextarea:focus,
.dijitDialog .dijitNumberTextBox:focus,
.dijitDialogPaneContentArea .dijitTextBox:focus,
.dijitDialogPaneContentArea .dijitTextarea:focus,
.dijitDialogPaneContentArea .dijitNumberTextBox:focus {
    border-color: #666 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(102, 102, 102, 0.1) !important;
    background-color: #fafafa !important;
}

.dijitDialog .form-note,
.dijitDialogPaneContentArea .form-note {
    font-size: 12px !important;
    color: #666 !important;
    margin-top: 6px !important;
    background: transparent !important;
    font-style: italic !important;
    line-height: 1.4 !important;
}

/* Enhanced form layout within dialogs */
.dijitDialogPaneContentArea .form-row {
    display: flex !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
    align-items: flex-start !important;
}

.dijitDialogPaneContentArea .form-row .form-group {
    flex: 1 !important;
    min-width: 0 !important;
}

.dijitDialogPaneContentArea .form-group {
    margin-bottom: 20px !important;
}

/* Button styling within dialogs */
.dijitDialogPaneActionBar .dijitButton {
    margin-right: 12px !important;
    background: #333 !important;
    color: white !important;
    border: 2px solid #333 !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    text-transform: none !important;
}

.dijitDialogPaneActionBar .dijitButton:hover {
    background: #555 !important;
    border-color: #555 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.dijitDialogPaneActionBar .dijitButton .dijitButtonText {
    color: white !important;
    font-weight: 600 !important;
}

/* Cancel button specific styling */
.dijitDialogPaneActionBar .dijitButton:last-child {
    background: #666 !important;
    border-color: #666 !important;
}

.dijitDialogPaneActionBar .dijitButton:last-child:hover {
    background: #777 !important;
    border-color: #777 !important;
}

/* Textarea specific styling */
.dijitDialog .dijitTextarea,
.dijitDialogPaneContentArea .dijitTextarea {
    min-height: 80px !important;
    resize: vertical !important;
    font-family: 'Segoe UI', 'Arial', sans-serif !important;
    line-height: 1.5 !important;
}

/* Enhanced dialog container styling */
.dijitDialog {
    background: white !important;
    background-color: white !important;
    background-image: none !important;
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
    overflow: hidden !important;
}

.dijitDialogPaneContentArea {
    background: white !important;
    background-color: white !important;
    background-image: none !important;
    padding: 25px !important;
    color: #333 !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
}

.dijitDialogTitleBar {
    background: #f8f9fa !important;
    background-color: #f8f9fa !important;
    background-image: none !important;
    border-bottom: 1px solid #dee2e6 !important;
    color: #333 !important;
    font-weight: 600 !important;
    padding: 18px 25px !important;
    font-size: 18px !important;
}

.dijitDialogPaneActionBar {
    padding: 20px 25px !important;
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6 !important;
    text-align: right !important;
}

/* Override any remaining Claro gradients or blues */
.claro .dijitDialog *,
.claro .dijitDialogPaneContentArea * {
    background: white !important;
    background-color: white !important;
    background-image: none !important;
    border-color: #ccc !important;
}

/* Specifically target any remaining blue elements */
*[style*="blue"],
*[style*="#abd6ff"],
*[style*="rgb(171, 214, 255)"],
*[class*="blue"] {
    background: white !important;
    background-color: white !important;
}

/* Ultra-specific override for Dojo dialog blue backgrounds */
.dijitDialog .dijitDialogPaneContent,
.dijitDialog .dijitDialogPaneContentArea,
.claro .dijitDialog .dijitDialogPaneContent,
.claro .dijitDialog .dijitDialogPaneContentArea {
    background: white !important;
    background-color: white !important;
    background-image: none !important;
}

/* Target computed styles that might have the blue color */
div[style*="rgb(171, 214, 255)"],
div[style*="#abd6ff"],
td[style*="rgb(171, 214, 255)"],
td[style*="#abd6ff"] {
    background: white !important;
    background-color: white !important;
}

/* Force override on any Dojo widget containers */
.dijitDialog * {
    background-image: none !important;
}

/* Specific Dojo widget styling overrides */
.dijitDialog .dijitInputField,
.dijitDialog .dijitTextBoxContainer,
.dijitDialog .dijitTextareaContainer,
.dijitDialog .dijitNumberTextBoxContainer,
.dijitDialogPaneContentArea .dijitInputField,
.dijitDialogPaneContentArea .dijitTextBoxContainer,
.dijitDialogPaneContentArea .dijitTextareaContainer,
.dijitDialogPaneContentArea .dijitNumberTextBoxContainer {
    background: white !important;
    background-color: white !important;
    border: 2px solid #ccc !important;
    border-radius: 6px !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.dijitDialog .dijitInputField input,
.dijitDialog .dijitInputField textarea,
.dijitDialogPaneContentArea .dijitInputField input,
.dijitDialogPaneContentArea .dijitInputField textarea {
    border: none !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.dijitDialog .dijitInputField:focus-within,
.dijitDialog .dijitTextBoxContainer:focus-within,
.dijitDialog .dijitTextareaContainer:focus-within,
.dijitDialog .dijitNumberTextBoxContainer:focus-within,
.dijitDialogPaneContentArea .dijitInputField:focus-within,
.dijitDialogPaneContentArea .dijitTextBoxContainer:focus-within,
.dijitDialogPaneContentArea .dijitTextareaContainer:focus-within,
.dijitDialogPaneContentArea .dijitNumberTextBoxContainer:focus-within {
    border-color: #666 !important;
    box-shadow: 0 0 0 3px rgba(102, 102, 102, 0.1) !important;
    background-color: #fafafa !important;
}

/* Remove any Dojo widget inner styling that might interfere */
.dijitDialog .dijitReset,
.dijitDialogPaneContentArea .dijitReset {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Responsive dialog styling */
@media (max-width: 768px) {
    .dijitDialog {
        width: 95% !important;
        max-width: 95% !important;
    }
    
    .dijitDialogPaneContentArea .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .dijitDialogPaneContentArea {
        padding: 15px !important;
    }
}

/* ===== LOGS PAGE STYLING ===== */
.logs-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px;
}

/* New horizontal controls row */
.logs-controls-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 6px 8px;
    background: #f4f4f4;
    border-radius: 6px;
    color: #222;
    flex-wrap: wrap;
    font-size: 13px;
}
.compact-controls .compact-input,
.compact-controls .compact-select {
    padding: 4px 8px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    margin: 0 2px;
    min-width: 80px;
    max-width: 140px;
    height: 28px;
}
.compact-controls .compact-btn {
    padding: 4px 8px;
    font-size: 13px;
    border-radius: 4px;
    background: #eee;
    color: #444;
    border: 1px solid #ccc;
    cursor: pointer;
    margin-left: 2px;
    height: 28px;
}
.compact-controls .compact-btn:hover {
    background: #ddd;
}

.logs-controls-row input[type="text"] {
    padding: 8px;
    border: none;
    border-radius: 4px;
    background: rgba(255,255,255,0.9);
    min-width: 200px;
    flex: 1;
    max-width: 300px;
}

.logs-controls-row button {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background: #3498db;
    color: white;
    cursor: pointer;
    white-space: nowrap;
}

.logs-controls-row button:hover {
    background: #2980b9;
}

.logs-controls-row .filter-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 120px;
}

.logs-controls-row .filter-group label {
    font-weight: bold;
    font-size: 11px;
    color: white;
    margin: 0;
}

.logs-controls-row .filter-group select {
    padding: 6px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    background: rgba(255,255,255,0.9);
    font-size: 13px;
}

.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #2c3e50;
    border-radius: 8px;
    color: white;
}

.logs-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.logs-controls input[type="text"] {
    padding: 8px;
    border: none;
    border-radius: 4px;
    background: rgba(255,255,255,0.9);
    min-width: 200px;
}

.logs-controls button {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background: #3498db;
    color: white;
    cursor: pointer;
    white-space: nowrap;
}

.logs-controls button:hover {
    background: #2980b9;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: bold;
    font-size: 12px;
    color: white;
    margin: 0;
}

.filter-group select,
.filter-group input {
    padding: 6px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    background: rgba(255,255,255,0.9);
    min-width: 120px;
}

.logs-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    padding: 4px 8px;
    background: #fafafa;
    border-radius: 6px;
    font-size: 12px;
    flex-wrap: wrap;
    color: #444;
}
.compact-stats span { font-size: 12px; color: #666; }

.logs-table-container {
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: auto;
    background: #fff;
    height: calc(85vh - var(--header-height, 160px));
    min-height: 400px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px; /* Increased minimum width */
    table-layout: fixed; /* Fixed layout for consistent column sizing */
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 13px;
}

.logs-table th {
    background: rgba(52, 73, 94, 0.8);
    color: white;
    padding: 8px 6px;
    text-align: left;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
    border-right: 1px solid #555;
    cursor: pointer;
    user-select: none;
}

.logs-table th:last-child {
    border-right: none;
}

/* Compact table styles for logs */
.logs-table.compact-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
    font-size: 12px;
}

.logs-table.compact-table th.compact-th {
    background: #f8f9fa;
    color: #555;
    padding: 6px 4px;
    text-align: left;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 10;
    cursor: pointer;
    user-select: none;
    border-bottom: 2px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    font-size: 12px;
    letter-spacing: 0.01em;
}

.logs-table.compact-table th.compact-th:last-child {
    border-right: none;
}

.logs-table.compact-table th.compact-th:hover {
    background: #e9ecef;
}

.logs-table.compact-table th .sort-indicator {
    margin-left: 3px;
    font-size: 10px;
    opacity: 0.6;
}

.logs-table.compact-table td {
    padding: 4px 6px;
    border-bottom: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    vertical-align: top;
    font-size: 12px;
    color: #495057;
    background: #fff;
    overflow: hidden;
    word-wrap: break-word;
}

.logs-table.compact-table td:last-child {
    border-right: none;
}

.logs-table.compact-table tr {
    transition: background 0.1s;
}

.logs-table.compact-table tr:hover {
    background: #f8f9fa;
}

.log-level-DEBUG { background: #6c757d; color: white; }
.log-level-INFO { background: #17a2b8; color: white; }
.log-level-WARNING { background: #ffc107; color: black; }
.log-level-ERROR { background: #dc3545; color: white; }

.log-message {
    width: auto;
    min-width: 200px;
    word-wrap: break-word;
    position: relative;
}

.message-content {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.expand-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    padding: 0;
    margin-right: 4px;
    line-height: 1;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.expand-btn:hover {
    color: #333;
}

.expand-btn.expanded {
    transform: rotate(90deg);
}

.message-text {
    flex: 1;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    max-width: 100%;
}

.message-text.expanded {
    white-space: pre-wrap;
    overflow: visible;
    text-overflow: unset;
}

.log-timestamp {
    font-size: 13px;
    color: #222;
    white-space: nowrap;
}

.log-module {
    font-size: 13px;
    color: #222;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    color: #666;
}

.no-more-logs {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

.scroll-trigger {
    height: 1px;
    margin: 10px 0;
}

.logs-info {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

/* Copy button styling */
.copy-btn {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 2px 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    font-size: 12px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.copy-btn:hover {
    opacity: 1;
    background: #f0f0f0;
    border-color: #999;
}

.copy-btn.copied {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.copy-icon {
    font-size: 11px;
    line-height: 1;
}

/* Responsive logs styling */
@media (max-width: 768px) {
    .logs-controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .logs-controls-row input[type="text"] {
        max-width: none;
        min-width: 100%;
    }
    
    .logs-controls-row .filter-group {
        min-width: 100px;
    }
    
    .logs-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .logs-controls {
        justify-content: center;
    }
    
    .logs-stats {
        flex-direction: column;
        gap: 5px;
    }
    
    .filter-group {
        min-width: 100px;
    }
    
    /* Ensure table is horizontally scrollable on small screens */
    .logs-table-container {
        overflow-x: auto;
    }
    
    .logs-table {
        min-width: 900px; /* Force horizontal scroll on mobile */
    }
}

/* Google OAuth Admin Page Styles */
.permission-status {
    float: right;
    font-weight: bold;
    position: relative;
}

.status-granted {
    color: #28a745;
    position: relative;
    display: inline-block;
    min-width: 100px;
}

.status-denied {
    color: #dc3545;
    position: relative;
    display: inline-block;
    min-width: 100px;
}

.status-unknown {
    color: #6c757d;
}

.permission-timestamp {
    position: absolute;
    bottom: -18px;
    right: 0;
    font-size: 0.7em;
    color: #6c757d;
    font-weight: normal;
    white-space: nowrap;
    background-color: rgba(248, 249, 250, 0.9);
    padding: 2px 4px;
    border-radius: 2px;
    border: 1px solid #dee2e6;
}

.scopes-status-info {
    background-color: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
}

.scopes-status-info p {
    margin: 0;
    color: #0056b3;
}

.connection-status-info {
    background-color: #f0f8ff;
    border: 1px solid #cce7ff;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
}

.connection-status-info p {
    margin: 0;
    color: #004085;
}

.connection-detail {
    margin-bottom: 8px;
}

.connection-value {
    font-weight: bold;
    color: #495057;
}

.connection-note {
    display: block;
    color: #6c757d;
    font-size: 0.85em;
    margin-top: 2px;
}

.scope-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    position: relative;
    min-height: 30px; /* Extra space for timestamp */
}

.scope-item {
    margin-bottom: 25px; /* Extra space for timestamp */
}

.scope-name {
    font-family: 'Courier New', monospace;
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.required-badge {
    background-color: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.optional-badge {
    background-color: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.authorization-info {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.authorization-info small {
    color: #495057;
}

/* Google OAuth Admin Styles */
.oauth-admin-content .scope-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.oauth-admin-content .scope-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.oauth-admin-content .scope-name {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.oauth-admin-content .required-badge {
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.oauth-admin-content .permission-status {
    font-weight: bold;
}

.oauth-admin-content .status-unknown {
    color: #6c757d;
}

.oauth-admin-content .status-granted {
    color: #28a745;
}

.oauth-admin-content .status-denied {
    color: #dc3545;
}

.oauth-admin-content .scope-description {
    margin-bottom: 5px;
    color: #495057;
}

.oauth-admin-content .scope-data-access {
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
}

.oauth-admin-content .scopes-status-info {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
}

.oauth-admin-content .scopes-status-info p {
    margin: 0;
    color: #155724;
}

.oauth-admin-content .connection-status-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
}

.oauth-admin-content .connection-status-info p {
    margin: 0;
    color: #0c5460;
}

.oauth-admin-content .connection-detail {
    margin-bottom: 10px;
}

.oauth-admin-content .connection-value {
    font-weight: bold;
    color: #495057;
}

.oauth-admin-content .connection-note {
    display: block;
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 2px;
}

/* Revoke scope button styles */
.revoke-scope-btn {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
    padding: 4px 8px;
    font-size: 0.8em;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.revoke-scope-btn:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: white;
}

.revoke-scope-btn:active {
    background-color: #bd2130;
    border-color: #b21f2d;
}

.revoke-scope-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Scope data display styles */
.scope-data-access {
    font-size: 0.9em;
    color: #6c757d;
    line-height: 1.4;
}

.scope-data-access img {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    border: 1px solid #dee2e6;
}

#profile-data img {
    margin-top: 3px;
}

/* ===== Admin Login Form Styles ===== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    border: 1px solid #e1e5e9;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 1.8em;
    font-weight: 600;
}

.login-header p {
    color: #666;
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.login-form {
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
    font-size: 0.9em;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-button {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.login-footer p {
    margin: 8px 0;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s ease;
}

.login-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive adjustments for login form */
@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 1.6em;
    }
}

/* SQL Admin Styles */
.sql-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sql-editor {
    margin: 20px 0;
}

.sql-textarea {
    width: 100%;
    height: 300px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background-color: #f8f9fa;
    resize: vertical;
}

.sql-controls {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

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

.btn-secondary:hover {
    background-color: #545b62;
}

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

.btn-danger:hover {
    background-color: #c82333;
}

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

.btn-success:hover {
    background-color: #218838;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
}

.results-container {
    margin: 20px 0;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 12px;
}

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

.results-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.results-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.warning-box {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    margin: 20px 0;
}

.query-examples {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.example-query {
    background-color: #e9ecef;
    padding: 10px;
    margin: 5px 0;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    cursor: pointer;
}

.example-query:hover {
    background-color: #dee2e6;
}

/* Portfolio Showcase Styles */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.showcase-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.showcase-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.showcase-header h3 {
    margin: 0;
    flex: 1;
}

.external-link {
    margin-left: 10px;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.external-link:hover {
    opacity: 1;
}

.external-link span {
    font-size: 16px;
}

.showcase-description {
    color: #555;
    line-height: 1.6;
    margin: 15px 0;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tech-tag {
    background: #f0f7ff;
    color: #0066cc;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e0efff;
}

/* Portfolio Showcase List Layout */
.showcase-list {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.showcase-project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.showcase-project {
    padding: 30px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.showcase-project:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #0066cc;
}

.project-screenshot {
    float: left;
    width: 220px;
    margin: 0 25px 15px 0;
    position: relative;
}

.screenshot-placeholder {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #6c757d;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    transition: border-color 0.3s ease;
}

.screenshot-placeholder:hover {
    border-color: #0066cc;
}

.screenshot-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.screenshot-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.screenshot-placeholder p {
    margin: 0;
    font-style: italic;
    font-size: 0.8rem;
    text-align: center;
    padding: 0 10px;
}

.project-details {
    overflow: hidden; /* Creates block formatting context for float clearance */
}

.project-details h3 {
    margin: 0 0 15px 0;
    font-size: 1.5em;
    color: #333;
    line-height: 1.3;
    font-weight: 600;
}

.showcase-description {
    color: #555;
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-size: 1em;
}

.tech-tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: #f1f3f4;
    color: #5f6368;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85em;
    font-weight: 500;
    border: 1px solid #e8eaed;
    transition: all 0.2s ease;
}

.showcase-project:hover .tech-tag {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #bbdefb;
}

/* Responsive design for project list */
@media (max-width: 768px) {
    .project-screenshot {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }
    
    .screenshot-image,
    .screenshot-placeholder {
        height: 180px;
    }
    
    .showcase-project {
        padding: 20px;
    }
    
    .project-details h3 {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .showcase-project {
        padding: 15px;
    }
    
    .project-screenshot {
        width: 100%;
        margin: 0 0 15px 0;
    }
    
    .screenshot-image,
    .screenshot-placeholder {
        height: 150px;
    }
    
    .tech-tags {
        margin-top: 15px;
    }
    
    .tech-tag {
        font-size: 0.8em;
        padding: 5px 10px;
    }
}

/* Technical Architecture Grid */
.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.arch-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    border-left: 4px solid #0066cc;
}

.arch-section h4 {
    margin: 0 0 15px 0;
    color: #0066cc;
    font-weight: 600;
}

.arch-section ul {
    margin: 0;
    padding-left: 20px;
}

.arch-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.arch-section strong {
    color: #333;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .architecture-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .showcase-item {
        padding: 20px;
    }
    
    .arch-section {
        padding: 15px;
    }
}

/* Project Showcase Detail Page Styles */
.project-showcase-content {
    max-width: 1600px; /* Increased from 1400px to match main container width */
    margin: 0 auto;
    padding: 20px;
}

.project-header {
    margin-bottom: 40px;
}

.breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #0066cc;
    text-decoration: underline;
}

.project-header h1 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 2.5em;
    font-weight: 700;
}

.project-meta {
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background: #0066cc;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #0052a3;
    text-decoration: none;
}

.btn-secondary {
    display: inline-block;
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
    margin-right: 15px;
}

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

.project-content {
    line-height: 1.7;
}

/* Screenshot Management in Project Dialog */
.screenshots-section {
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.screenshots-section .form-group.full-width {
    width: 100%;
}

/* Enhanced dialog form styling */
.dijitDialog .form-row {
    display: flex !important;
    gap: 15px !important;
    margin-bottom: 15px !important;
}

.dijitDialog .form-group {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.dijitDialog .form-group.full-width {
    width: 100% !important;
}

.dijitDialog label {
    margin-bottom: 5px !important;
    font-weight: bold !important;
    color: #333 !important;
    display: block !important;
}

.dijitDialog input,
.dijitDialog textarea {
    padding: 8px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    background: white !important;
    color: #333 !important;
    font-family: inherit !important;
}

.dijitDialog .form-note {
    font-size: 12px !important;
    color: #666 !important;
    margin-top: 4px !important;
    font-style: italic !important;
}

.screenshots-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.screenshot-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    background: white;
}

.screenshot-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.screenshot-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.screenshot-name {
    flex: 1;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
}

.delete-screenshot {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

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

.screenshot-upload {
    text-align: center;
    padding: 15px;
    border: 2px dashed #ccc;
    border-radius: 4px;
    background: #fafafa;
}

.screenshot-upload button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 8px;
}

.screenshot-upload button:hover {
    background: #0056b3;
}

.no-screenshots {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
    margin: 0;
}

.project-overview {
    margin-bottom: 40px;
}

.project-overview .lead {
    font-size: 1.2em;
    color: #555;
    line-height: 1.6;
}

.tech-tags-large {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.tech-tag-large {
    background: #f0f7ff;
    color: #0066cc;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #e0efff;
}

.project-details {
    margin-bottom: 40px;
}

.project-details h3 {
    color: #333;
    margin-bottom: 20px;
}

.project-navigation {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* Mobile responsive for project pages */
@media (max-width: 768px) {
    .project-showcase-content {
        padding: 15px;
    }
    
    .project-header h1 {
        font-size: 2em;
    }
    
    .tech-tags-large {
        gap: 8px;
    }
    
    .tech-tag-large {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .project-navigation {
        text-align: center;
    }
    
    .btn-secondary {
        margin-right: 0;
        margin-bottom: 10px;
        display: block;
    }
    
    .btn-primary {
        display: block;
    }
}

/* Responsive design for wider showcase pages */
@media (min-width: 1024px) {
    .project-header {
        margin-bottom: 50px;
    }
    
    .project-header h1 {
        font-size: 3.2em;
        margin-bottom: 30px;
    }
    
    .project-content {
        font-size: 1.1em;
        line-height: 1.8;
    }
    
    /* Create two-column layout for project tech and details when content is long */
    .project-tech {
        display: grid;
        gap: 20px;
        align-items: start;
    }
    
    .tech-tags-large {
        justify-content: flex-start;
    }
}

@media (min-width: 1200px) {
    .project-header h1 {
        font-size: 3.5em;
    }
    
    .project-content {
        font-size: 1.15em;
    }
}

/* Inline Content Editing Styles */
.editable-content {
    position: relative;
}

.editable-content.editing {
    background: #fff;
    border: 2px solid #007bff;
    border-radius: 4px;
    padding: 10px;
    margin: 5px 0;
}

.content-input,
.content-textarea {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    resize: vertical;
    min-height: 40px;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

/* Inherit styles from parent heading elements */
h2.editable-content.editing .content-input {
    font-size: 2em;
    font-weight: bold;
    margin: 0;
}

h3.editable-content.editing .content-input {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0;
}

/* Inherit styles from parent paragraph elements */
p.editable-content.editing .content-textarea {
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
}

/* Special styling for tagline (italic) */
.editable-content[data-config-key="tagline"].editing .content-textarea {
    font-style: italic;
}

.edit-controls {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.edit-btn {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.edit-btn:hover {
    background: #f8f9fa;
    border-color: #999;
}

.save-btn {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.save-btn:hover {
    background: #218838;
    border-color: #1e7e34;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.cancel-btn:hover {
    background: #5a6268;
    border-color: #545b62;
}

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

/* Feedback Messages */
.feedback-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 16px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.feedback-message.show {
    transform: translateX(0);
}

.feedback-message.success {
    background: #28a745;
}

.feedback-message.error {
    background: #dc3545;
}

/* Inline Content Editing Styles */
.editable-content {
    position: relative;
}

.editable-content.editing {
    border: 1px dashed #007bff;
    border-radius: 2px;
    /* Minimal visual change - preserve original layout */
}

.content-input,
.content-textarea {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    resize: vertical;
    min-height: 40px;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

/* Match heading styles for input elements */
.editable-content h2.editing .content-input,
.editable-content h3.editing .content-input {
    font-weight: bold;
    font-size: inherit;
}

/* Match paragraph styles for textarea elements */
.editable-content p.editing .content-textarea {
    font-weight: normal;
    font-size: inherit;
}

/* Style for italic content (taglines) */
.editable-content[data-config-key="tagline"] .content-textarea {
    font-style: italic;
}

.edit-controls {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.edit-btn {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.edit-btn:hover {
    background: #f8f9fa;
    border-color: #999;
}

.save-btn {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.save-btn:hover {
    background: #218838;
    border-color: #1e7e34;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.cancel-btn:hover {
    background: #5a6268;
    border-color: #545b62;
}

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

/* Feedback Messages */
.feedback-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 16px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.feedback-message.show {
    transform: translateX(0);
}

.feedback-message.success {
    background: #28a745;
}

.feedback-message.error {
    background: #dc3545;
}

/* OAuth Admin Pages Responsive Layout */
.oauth-admin-content {
    margin: 0 auto;
    padding: 20px;
}

/* Responsive layout for OAuth configuration and scopes */
@media (min-width: 1024px) {
    .oauth-admin-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: start;
    }
    
    .oauth-admin-content h2,
    .oauth-admin-content .admin-nav {
        grid-column: 1 / -1; /* Span both columns */
        margin-bottom: 30px;
    }
    
    .config-section {
        margin-bottom: 0; /* Remove margin since grid handles spacing */
    }
}

/* OAuth pages specific body class styling */
.google-oauth-admin .wrap,
.linkedin-oauth-admin .wrap,
.analytics-admin .wrap,
.showcase-editor-admin .wrap {
    margin: 0 auto;
    padding: 0 20px;
}

/* Analytics Dashboard Styles */
.analytics-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px;
}

.analytics-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Wide screen responsive layout - keep stats and top pages side by side */
@media (min-width: 1024px) {
    .analytics-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: start;
    }
    
    /* Full-width sections should span both columns */
    .analytics-content .full-width-section {
        grid-column: 1 / -1;
    }
}

/* Stats section */
.analytics-stats-section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.analytics-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.stat-period {
    font-size: 12px;
    color: #999;
}

/* Pages section */
.analytics-pages-section {
    min-width: 0; /* Prevent grid blowout */
}

.analytics-pages-section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

/* Analytics table styling */
.analytics-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analytics-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e9ecef;
}

.analytics-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

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

/* Full width section for Recent Visits */
.full-width-section {
    grid-column: 1 / -1; /* Span all columns */
    margin-top: 30px;
}

.full-width-section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

/* Chart container styling */
.chart-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.chart-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Daily views chart specific styling */
#dailyViewsChart {
    max-width: 100%;
    height: auto;
}

/* Limit chart text/numbers to 1em max width */
.chart-container canvas text,
.chart-container .chart-number {
    max-width: 1em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
