:root {
    --primary-color: #06b6d4;
    --secondary-color: #8b5cf6;
    --accent-color: #f093fb;
    --background-color: #f5f7fa;
    --text-color: #2d3748;
    --light-gray: #bdc3c7;
    --white: #ffffff;
    --gradient-start: #06b6d4;
    --gradient-end: #8b5cf6;
    --header-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --body-font: 'Georgia', serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    width: 100vw;
    max-width: 100vw;
}

footer p {
    text-align: center;
}

.container {
    max-width: 960px;
    margin: auto;
    overflow: hidden;
    padding: 4px;
}

#download .container {
    overflow-x: hidden;
    overflow-y: visible;
}

#hero .container {
    overflow: visible !important;
}

/* Navigation */
nav {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    position: relative; /* Added for absolute positioning of nav-links */
    background-color: rgb(27 29 32);
}

.nav-logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
    max-width: 40px;
    max-height: 40px;
}

/* Admin links container - desktop only */
.nav-admin-links {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0 0 0 20px;  /* 20px spacing after QLogo */
    align-items: center;
}

.nav-admin-links li {
    margin-right: 15px;
}

.nav-admin-links a {
    text-decoration: none;
    color: #4caf50;  /* Green for admin links */
    font-family: var(--header-font);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-admin-links a:hover {
    color: #45a049;  /* Darker green on hover */
}

.nav-links {
    list-style: none;
    display: flex;
    padding: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-family: var(--header-font);
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hamburger Menu - Hidden on desktop */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;  /* White for better contrast on dark nav */
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animation when open */
.nav-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Header */
#home {
    background: linear-gradient(to bottom, var(--secondary-color), #253545);
    color: var(--white);
    text-align: center;
    padding: 150px 0 100px;
    position: relative; /* Added for pseudo-element positioning */
    overflow: hidden; /* Hide glare overflow */
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Start off-screen to the left */
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-30deg); /* Angle the glare */
    animation: glare 3s infinite linear; /* Apply animation */
}

@keyframes glare {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.main-logo {
    width: 400px;
    max-width: 90vw;
    margin-bottom: 20px;
}

#home h1 {
    font-family: var(--header-font);
    font-size: 4rem;
    margin: 0;
}

.tagline {
    font-size: 1.5rem;
    font-style: italic;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section:nth-child(odd) {
    background: var(--white);
}

.section h2 {
    font-family: var(--header-font);
    font-size: 2.5rem;
    text-align: left;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background: var(--white);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
}

.feature-item h3 {
    font-family: var(--header-font);
    color: var(--primary-color);
}

/* Guides */
.guides-container {
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.guides-sidebar {
    flex: 0 0 250px; /* Fixed width for the sidebar */
    display: flex;
    flex-direction: column;
    gap: 5px; /* Reduced space between search and menu for compactness */
}

.guide-search input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
    box-sizing: border-box; /* Ensure padding and border are included in width */
}

.guide-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.guides-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
}

.guides-menu li {
    padding: 8px 15px; /* Reduced vertical padding for compactness */
    cursor: pointer;
    border-bottom: 1px solid var(--background-color);
    font-family: var(--header-font);
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guides-menu li:last-child {
    border-bottom: none;
}

.guides-menu li:hover {
    background-color: var(--background-color);
}

.guides-menu li.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.guide-no-results {
    text-align: center;
    padding: 15px;
    color: var(--secondary-color);
    font-weight: bold;
}

.guide-content-area {
    flex-grow: 1;
    background: var(--white);
    padding: 15px 40px 20px; /* Adjusted top padding to align with nav list items */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    min-height: 300px;
    width: 0; /* Prevent content from overflowing container */
}

/* Guide Content Styling */
.guide-content-area h1, .guide-content-area h2, .guide-content-area h3 {
    font-family: var(--header-font);
    color: var(--secondary-color);
    text-align: left; /* Ensure left alignment for headers within guide content */
}
.guide-content-area h1 {
    font-size: 2rem;
    margin-top: 0; /* Ensure no gap above the h1 */
}
.guide-content-area h2 { font-size: 1.5rem; }
.guide-content-area h3 { font-size: 1.2rem; }
.guide-content-area p {
    line-height: 1.8;
}
.guide-content-area code {
    background: var(--background-color);
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}
.guide-content-area pre {
    background: var(--background-color);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
.guide-content-area blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin-left: 0;
    font-style: italic;
}
.guide-content-area ul {
    padding-left: 20px;
}
.guide-content-area li {
    margin-bottom: 10px;
}


/* Contact Form */
#contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-family: var(--header-font);
    font-weight: bold;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-family: var(--header-font);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #2980b9; /* Darker blue */
}

#captcha-container {
    user-select: none;
}

#captcha-slider {
    position: relative;
    width: 100%;
    background-color: var(--background-color);
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#captcha-handle {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background-color: var(--primary-color);
    cursor: ew-resize;
    z-index: 2;
    border-radius: 5px 0 0 5px;
}

#captcha-handle:hover {
    background-color: #2980b9;
}

#captcha-text {
    z-index: 1;
    color: var(--secondary-color);
    font-weight: bold;
}

#captcha-slider.verified {
    background-color: #2ecc71;
}

#captcha-slider.verified #captcha-handle {
    background-color: #27ae60;
    cursor: default;
}

#captcha-slider.verified #captcha-text {
    color: var(--white);
}

#form-status {
    margin-top: 20px;
    text-align: center;
    font-size: 1.1rem;
}

#form-status.success {
    color: #2ecc71;
}

#form-status.error {
    color: #e74c3c;
}


/* About */
#about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Download */
#download h2 {
    margin-bottom: 20px;
}

/* Development Banner within Download Section */
#download #development-banner {
    background-color: #e74c3c; /* Red background for prominence */
    color: var(--white);
    text-align: center;
    padding: 10px 0;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 20px; /* Space below the banner */
    border-radius: 5px;
}

#download #development-banner p {
    margin: 0;
    padding: 0;
}

.download-options {
    display: flex; /* Use flexbox to center the single download container */
    justify-content: center;
    align-items: center;
    padding: 30px 0; /* Adjust padding for the section */
}

.os-download-container {
    position: relative;
    display: flex;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#main-download-button {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 1px solid rgba(0,0,0,0.1); /* Separator */
}

#os-dropdown-toggle {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 15px;
    cursor: pointer;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

#os-dropdown-toggle:hover {
    background-color: #2980b9; /* Darker blue */
}

#os-dropdown-toggle svg {
    height: 20px;
    width: 20px;
    fill: currentColor; /* Use button's text color for SVG */
}

.dropdown-menu {
    position: absolute;
    top: 100%; /* Position below the button */
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0; /* Space below button */
    z-index: 1000;
    display: none; /* Hidden by default */
    max-height: 300px; /* Limit dropdown height */
    overflow-y: auto; /* Enable scrolling within dropdown */
    scrollbar-width: thin; /* Firefox scrollbar styling */
    scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.1); /* Firefox scrollbar colors */
}

/* Custom scrollbar styling for WebKit browsers */
.dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

.dropdown-menu.show {
    display: block;
}

.download-option-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.download-option-item:hover {
    background-color: var(--background-color);
}

.download-option-item img {
    height: 20px;
    width: 20px;
    margin-right: 8px;
    transform: translateY(7px); /* Keep consistent with main button icon nudge */
}

/* Existing .download-button styles need to be adjusted for the main button */
.download-button {
    display: flex; /* Change to flex to align icon and text */
    align-items: center; /* Vertically align items */
    justify-content: center; /* Center content horizontally */
    white-space: nowrap; /* Prevent text from wrapping */
    padding: 12px 25px;
    margin: 0;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: var(--primary-color); /* Default background for main button */
    color: var(--white);
}

.download-button:hover {
    background-color: var(--secondary-color); /* Darker purple on hover */
}

.download-button.disabled {
    background-color: #9ca3af;
    color: #6b7280;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;  /* Prevent clicking when disabled */
}

.download-button.disabled:hover {
    background-color: #9ca3af; /* No hover effect when disabled */
    color: #6b7280;
}

.download-button.available {
    background-color: #2ecc71; /* Green color */
    color: var(--white);
    cursor: pointer;
}

.download-button.available:hover {
    background-color: #27ae60; /* Darker green on hover */
}

.download-button img {
    height: 20px; /* Adjust as needed */
    width: 20px; /* Adjust as needed */
    margin-right: 8px; /* Space between icon and text */
    vertical-align: middle; /* Ensure vertical alignment */
    transform: translateY(0px); /* Offset svg icon's vertical alignment for better alignment */
}

@media (max-width: 768px) {
    body {
        margin-top: 0; /* No fixed banner at top */
    }

    /* Hide admin links container on mobile */
    .nav-admin-links {
        display: none;
    }

    .nav-container {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
		background-color: rgb(27 29 32);
    }

    .nav-logo {
        margin-bottom: 0;
    }

    /* Show hamburger on mobile */
    .nav-hamburger {
        display: flex;
    }

    /* Mobile nav links - dropdown menu */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #1e1e1e;
        border: 1px solid #3c3c3c;
        box-shadow: 0 4px 6px rgba(0,0,0,0.3);
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin-top: 0; /* Remove gap, align directly with nav bar */
    }

    .nav-links.open {
        max-height: 500px;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid #3c3c3c;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 15px 20px;
        color: #f5f5f5;
    }

    .nav-links a:hover {
        background-color: #2a2a2a;
        color: #06b6d4;
    }

    nav {
        top: 0; /* No fixed banner at top */
    }

    #home h1 {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .section {
        padding: 40px 0;
    }

    .section h2 {
        font-size: 2rem;
    }

    .feature-grid, .download-options {
        grid-template-columns: 1fr;
    }

    .guides-container {
        flex-direction: column;
        gap: 20px;
    }

    .guides-sidebar {
        flex: 0 0 auto; /* Allow sidebar to take natural height */
        width: 100%;
    }

    .guide-search input {
        font-size: 0.9rem; /* Smaller font size for mobile search */
    }

    .guides-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
        border: 1px solid var(--light-gray);
        border-radius: 5px;
        overflow: hidden;
    }

    .guide-content-area {
        padding: 15px 20px 20px; /* Adjust padding for smaller screens */
        width: auto; /* Allow content area to take natural width */
    }

    #contact-form {
        padding: 20px;
    }
}

/* ========================================
   Admin Modal & Controls
   ======================================== */

/* Admin Modal */
.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.admin-modal-content {
    background: #f5f5f5;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.admin-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
    text-align: center;
}

.admin-modal-content input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #ffffff;
    color: #333333;
    font-size: 1rem;
    margin-bottom: 10px;
}

.admin-modal-content input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(106, 156, 253, 0.2);
}

.admin-error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding: 8px;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 4px;
    text-align: center;
}

.admin-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.admin-btn-primary,
.admin-btn-secondary {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-btn-primary {
    background: var(--primary-color);
    color: white;
}

.admin-btn-primary:hover {
    background: #5d8fe5;
}

.admin-btn-primary:disabled {
    background: #666;
    cursor: not-allowed;
}

.admin-btn-secondary {
    background: #e0e0e0;
    color: #333333;
    border: 1px solid #d0d0d0;
}

.admin-btn-secondary:hover {
    background: #d0d0d0;
}

/* Admin Success Notification */
.admin-success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Admin Controls (Publish/Unpublish Buttons) */
.admin-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.publish-badge {
    background: #4caf50;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-publish,
.btn-unpublish {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-publish {
    background: var(--primary-color);
    color: white;
}

.btn-publish:hover {
    background: #5d8fe5;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(106, 156, 253, 0.4);
}

.btn-unpublish {
    background: #ff9800;
    color: white;
}

.btn-unpublish:hover {
    background: #e68900;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
}

.btn-publish:active,
.btn-unpublish:active {
    transform: translateY(0);
}

/* Admin Notice Banner */
.admin-notice {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.admin-notice::before {
    content: '✓';
    background: rgba(255, 255, 255, 0.2);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .admin-modal-content {
        padding: 20px;
        max-width: 90%;
    }

    .admin-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-publish,
    .btn-unpublish {
        width: 100%;
    }

    .admin-notice {
        font-size: 13px;
        padding: 10px 15px;
    }
}

/* Custom Dialog System */
.custom-dialog {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.custom-dialog.show {
    opacity: 1;
}

.custom-dialog-content {
    background: #1e1e1e;
    border: 1px solid #3c3c3c;
    border-radius: 8px;
    padding: 24px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    color: #f5f5f5;
}

.custom-dialog-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 16px;
}

.custom-dialog-message {
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 24px;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
}

.custom-dialog-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.dialog-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dialog-btn-ok,
.dialog-btn-confirm {
    background: #06b6d4;
    color: #1e1e1e;
}

.dialog-btn-ok:hover,
.dialog-btn-confirm:hover {
    background: #0891b2;
}

.dialog-btn-cancel {
    background: #3c3c3c;
    color: #f5f5f5;
}

.dialog-btn-cancel:hover {
    background: #4a4a4a;
}

/* PIN Dialog for GitHub Push */
.pin-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pin-dialog-overlay.active {
    opacity: 1;
}

.pin-dialog {
    background-color: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 8px;
    min-width: 300px;
    max-width: min(500px, 90vw);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.pin-dialog-overlay.active .pin-dialog {
    transform: scale(1);
}

.pin-dialog-header {
    padding: 20px;
    border-bottom: 1px solid #404040;
}

.pin-dialog-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.pin-dialog-body {
    padding: 24px 20px;
}

.pin-dialog-body p {
    margin: 0 0 16px 0;
    color: #cccccc;
    font-size: 14px;
}

.pin-input {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
    text-align: center;
    letter-spacing: 4px;
    font-weight: bold;
    box-sizing: border-box;
}

.pin-input::placeholder {
    color: #888;
}

.pin-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pin-dialog-footer {
    padding: 16px 20px;
    border-top: 1px solid #404040;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.pin-dialog-footer .btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pin-dialog-footer .btn-primary {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.pin-dialog-footer .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.pin-dialog-footer .btn-secondary {
    background-color: #333;
    color: #ddd;
    border: 1px solid #444;
}

.pin-dialog-footer .btn-secondary:hover {
    background-color: #444;
}

/* Invalid Input Styling */
.form-input.invalid,
input.invalid,
textarea.invalid {
    border-color: #ff4444 !important;
    background-color: rgba(255, 68, 68, 0.1) !important;
}

.form-input.invalid:focus,
input.invalid:focus,
textarea.invalid:focus {
    outline-color: #ff4444 !important;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2) !important;
}
