/* PrinterShare Website - Main Stylesheet */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background: linear-gradient(to bottom, #f8fcfa 0%, #ffffff 300px, #f8faf9 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

main {
    flex: 1;
}

/* Header Styles */
header {
    background: linear-gradient(to bottom, #ffffff 0%, #f8fcfb 50%, #f3f9f7 100%);
    padding: 2rem 2rem 1.5rem 2rem;
    box-shadow: 0 3px 12px rgba(30, 130, 158, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #1e829e;
    position: relative;
    overflow: visible;
}

/* Abstract Background Pattern */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(30, 130, 158, 0.12) 0%, transparent 15%),
        radial-gradient(circle at 80% 60%, rgba(161, 189, 143, 0.10) 0%, transparent 18%),
        radial-gradient(circle at 50% 80%, rgba(30, 130, 158, 0.08) 0%, transparent 12%),
        radial-gradient(circle at 15% 70%, rgba(100, 180, 200, 0.09) 0%, transparent 14%);
    pointer-events: none;
    overflow: hidden;
}

/* Removed header::after to eliminate black circle artifact */

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #fafbfa;
    padding: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.brand-name {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e829e;
    text-shadow: 1px 1px 2px rgba(30, 130, 158, 0.1);
}

/* Navigation */
nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: #ff7f00;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    opacity: 0.8;
    border-bottom-color: #ff7f00;
}

nav a.active {
    border-bottom-color: #ff7f00;
}

/* Dropdown containers */
.account-dropdown,
.language-dropdown {
    position: relative;
}

/* Language Switcher */
.language-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.language-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.language-toggle .lang-code {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Account Dropdown */
.account-toggle {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.account-toggle .user-name {
    font-weight: 500;
}

.account-toggle .dropdown-arrow {
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.account-dropdown:hover .dropdown-arrow,
.dropdown-menu.show ~ .account-toggle .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.dropdown-menu a:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #ff7f00;
    border-bottom-color: transparent;
}

/* Language menu specific styles */
.language-menu {
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.language-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
}

.language-menu a.active {
    background: #f8f9fa;
    color: #ff7f00;
}

.language-menu .lang-name {
    flex: 1;
}

.language-menu .checkmark {
    margin-left: 0.75rem;
    color: #ff7f00;
    font-size: 1rem;
    font-weight: bold;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
    position: relative;
}

.hamburger:focus {
    outline: none;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #ff7f00;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
}

h1 {
    font-size: 3rem;
    color: #1e829e;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.tagline {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Download Buttons */
.download-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: 900px;
    margin: 1rem auto 2rem auto;
    padding: 0 2rem;
}

.download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #1e829e;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 12px rgba(30, 130, 158, 0.25);
    text-align: center;
    min-height: 60px;
}

.download-button:hover {
    background: #1a6f85;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 130, 158, 0.35);
}

.download-button.desktop {
    background: #ff7f00;
}

.download-button.desktop:hover {
    background: #e67300;
}

.download-button svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* Features Section */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.feature {
    background: white;
    padding: 2.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-top: 4px solid #ff7f00;
}

.feature h2 {
    color: #1e829e;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f7faf5 0%, #e8f4f6 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.feature p {
    color: #444;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

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

/* Footer */
footer {
    background: #f8faf9;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid #e0e0e0;
}

footer a {
    color: #ff7f00;
    text-decoration: none;
    margin: 0 1rem;
}

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

.footer-links {
    margin-bottom: 1rem;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0 2rem 0;
        box-shadow: -4px 0 12px rgba(0,0,0,0.15);
        transition: right 0.3s ease;
        z-index: 100;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    nav.active {
        right: 0;
    }

    nav a {
        padding: 1.25rem 2rem;
        border-bottom: 1px solid #f0f0f0;
        border-left: 3px solid transparent;
        text-align: center;
        font-size: 1.1rem;
    }

    nav a:hover,
    nav a.active {
        border-bottom: 1px solid #f0f0f0;
        border-left-color: #ff7f00;
        background: #f8faf9;
    }

    /* Language and account dropdowns in mobile */
    .language-dropdown,
    .account-dropdown {
        width: 100%;
    }

    .language-toggle,
    .account-toggle {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1.25rem 2rem;
        border-radius: 0;
        text-align: center;
    }

    .language-toggle:hover {
        background-color: #f8faf9;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8faf9;
        border-radius: 0;
        max-height: 0;
        overflow-y: auto;
        transition: max-height 0.3s ease;
    }

    .dropdown-menu.show {
        max-height: 300px;
        overflow-y: auto;
    }

    .language-menu.show {
        max-height: 400px;
        overflow-y: auto;
        padding-bottom: 1rem;
    }

    .dropdown-menu a {
        padding: 1rem 2rem 1rem 3rem;
        border-bottom: 1px solid #e8e8e8;
        font-size: 1rem;
    }

    .language-menu a {
        padding: 0.85rem 2rem 0.85rem 3rem;
    }

    .language-menu a:last-child {
        margin-bottom: 1rem;
    }

    .dropdown-menu a:first-child,
    .dropdown-menu a:last-child {
        border-radius: 0;
    }

    .dropdown-menu a:hover {
        background: #f0f4f2;
    }

    .download-section {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .features {
        grid-template-columns: 1fr;
        padding: 1.5rem 1rem 2rem 1rem;
    }

    .feature {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 1.5rem;
    }

    .logo {
        width: 48px;
        height: 48px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .download-button {
        font-size: 0.95rem;
        padding: 0.875rem 1.25rem;
    }

    .download-button svg {
        width: 24px;
        height: 24px;
    }
}
/* Contact Page Styles */
.contact-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    font-size: 2.5rem;
    color: #1e829e;
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.1rem;
    color: #666;
}

.contact-form {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ========================================
   FORMS - Unified Styling
   ======================================== */

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e829e;
    box-shadow: 0 0 0 3px rgba(30, 130, 158, 0.1);
}

/* Override autofill colors to match form styling */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-text-fill-color: #333;
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    transition: background-color 5000s ease-in-out 0s;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.875rem;
}

.required {
    color: #ff7f00;
}

.submit-btn {
    background: #1e829e;
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(30, 130, 158, 0.25);
}

.submit-btn:hover {
    background: #1a6f85;
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    display: none;
    background: #f7faf5;
    border-left: 4px solid #1e829e;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.success-message.show {
    display: block;
}

.success-message h2 {
    color: #1e829e;
    margin-bottom: 1rem;
}

.success-message p {
    color: #444;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.error-message {
    background: #fff3e0;
    border-left: 4px solid #ff7f00;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: none;
}

.error-message.show {
    display: block;
}

.contact-info {
    margin-top: 3rem;
    padding: 2rem;
    background: #f7faf5;
    border-radius: 12px;
    text-align: center;
}

.contact-info h3 {
    color: #1e829e;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #444;
    margin-bottom: 0.5rem;
}

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

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

@media (max-width: 768px) {
    .contact-header h1 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* For Business Page Styles */
.business-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.business-section {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.business-section h2 {
    color: #1e829e;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.business-section h3 {
    color: #1e829e;
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
}

.business-section p {
    color: #444;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.business-section ul {
    margin: 1rem 0 1rem 1.5rem;
    color: #444;
}

.business-section li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.pricing-card {
    background: #f7faf5;
    padding: 2rem;
    border-radius: 12px;
    border-top: 4px solid #ff7f00;
}

.pricing-card h4 {
    color: #1e829e;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: #ff7f00;
    margin-bottom: 0.5rem;
}

.price-period {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.features-list li {
    padding: 0.5rem 0;
    color: #444;
}

.features-list li:before {
    content: "✓ ";
    color: #3d8d23;
    font-weight: bold;
    margin-right: 0.5rem;
}

.cta-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: #ff7f00;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #e67300;
}

@media (max-width: 768px) {
    .business-section {
        padding: 1.75rem;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }
}

/* Help Page Styles */
.help-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.help-section {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 2.5rem;
}

.help-section h2 {
    color: #1e829e;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #ff7f00;
    padding-bottom: 0.5rem;
}

.help-section h3 {
    color: #1e829e;
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
}

.help-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.help-card {
    background: #f7faf5;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #1e829e;
    transition: transform 0.2s, box-shadow 0.2s;
}

.help-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.help-card h4 {
    color: #1e829e;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-card .icon {
    font-size: 1.5rem;
}

.help-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.help-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.help-list li:last-child {
    border-bottom: none;
}

.help-list a {
    color: #1e829e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-list a:hover {
    color: #ff7f00;
}

.help-list a::before {
    content: "→";
    color: #ff7f00;
    font-weight: bold;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.platform-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-top: 4px solid #ff7f00;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.platform-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.platform-card h3 {
    color: #1e829e;
    font-size: 1.5rem;
    margin: 1rem 0;
}

.platform-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.platform-card .btn-help {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #1e829e;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
}

.platform-card .btn-help:hover {
    background: #1a6f85;
}

.contact-box {
    background: linear-gradient(135deg, #f7faf5 0%, #e8f4f6 100%);
    padding: 2rem;
    border-radius: 12px;
    border-left: 6px solid #ff7f00;
    margin: 2rem 0;
}

.contact-box h3 {
    color: #1e829e;
    margin-top: 0;
}

.contact-box p {
    color: #444;
    line-height: 1.7;
}

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

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

@media (max-width: 768px) {
    .help-section {
        padding: 1.75rem;
    }

    .help-topics,
    .platform-grid {
        grid-template-columns: 1fr;
    }
}

/* Install Page Styles */
.install-section {
    max-width: 1000px;
    margin: 0 auto 4rem auto;
    padding: 0 2rem;
}

.platform-section {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    border-left: 6px solid #ff7f00;
}

.platform-section h2 {
    color: #1e829e;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.platform-section h3 {
    color: #1e829e;
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.platform-section h3:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 1.5rem;
}

.platform-section p {
    color: #444;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.platform-section ul {
    margin: 1rem 0 1rem 1.5rem;
    color: #444;
}

.platform-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #1e829e;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 12px rgba(30, 130, 158, 0.25);
    margin: 1rem 0;
}

.download-btn:hover {
    background: #1a6f85;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 130, 158, 0.35);
}

.download-btn svg {
    width: 24px;
    height: 24px;
}

.download-btn.direct {
    background: #ff7f00;
}

.download-btn.direct:hover {
    background: #e67300;
}

.requirements {
    background: #f7faf5;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.requirements h4 {
    color: #1e829e;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.note {
    background: #fff8e6;
    border-left: 4px solid #ff7f00;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.note strong {
    color: #ff7f00;
}

@media (max-width: 768px) {
    .platform-section {
        padding: 1.75rem;
    }

    .platform-section h2 {
        font-size: 1.6rem;
    }
}

/* Privacy & Terms Pages Styles */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.legal-content h2 {
    color: #1e829e;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

.legal-content h3 {
    color: #1e829e;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem 0;
}

.legal-content p {
    color: #444;
    line-height: 1.75;
    margin-bottom: 1rem;
    text-align: left;
}

.legal-content ul {
    margin: 1rem 0 1rem 2rem;
    color: #444;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.highlight-box {
    background: #f7faf5;
    border-left: 4px solid #1e829e;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}
/* User Portal Styles */

/* Authentication Pages */
.auth-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.auth-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.auth-card h1 {
    font-size: 1.75rem;
    color: #1e829e;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Auth forms use .form-group styles (no custom overrides needed) */

.form-actions {
    margin-top: 2rem;
}

.btn-primary {
    width: 100%;
    background: #1e829e;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, opacity 0.2s;
    box-shadow: 0 4px 12px rgba(30, 130, 158, 0.25);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background: #1a6f85;
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background: #b8d4dc;
    color: #6a8c96;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: 0 2px 6px rgba(30, 130, 158, 0.1);
}

.btn-primary:disabled:hover {
    background: #b8d4dc;
    transform: none;
}

.btn-primary.btn-inline {
    width: auto;
    padding: 0.75rem 2rem;
}

.btn-secondary {
    background: white;
    color: #1e829e;
    padding: 0.75rem 1.5rem;
    border: 2px solid #1e829e;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    margin-right: 0.5rem;
}

.btn-secondary:hover {
    background: #1e829e;
    color: white;
}

.auth-links {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    color: #666;
}

.auth-links a {
    color: #1e829e;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-links .separator {
    margin: 0 0.75rem;
    color: #ccc;
}

.error-message {
    background: #fff3e0;
    border-left: 4px solid #ff7f00;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    color: #d84315;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    background: #f7faf5;
    border-left: 4px solid #1e829e;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
}

.success-message h2 {
    color: #1e829e;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-message p {
    color: #444;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.auth-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff9e6;
    border-left: 4px solid #ff7f00;
    border-radius: 8px;
}

.auth-info h3 {
    color: #d84315;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.auth-info p {
    margin: 0.5rem 0;
    color: #666;
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 40px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2.25rem;
    color: #1e829e;
    margin-bottom: 0;
}

/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: #1e829e;
    background: #f8faf9;
}

.tab-button.active {
    color: #1e829e;
    border-bottom-color: #1e829e;
}

.dashboard-content {
    /* No max-width - uses full dashboard-container width (1200px) */
}

.tab-content {
    display: none;
}

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

.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.dashboard-card h2 {
    color: #1e829e;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-of-type {
    border-bottom: none;
}

.info-row .label {
    font-weight: 600;
    color: #666;
}

.info-row .value {
    color: #333;
}

.card-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.no-data {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 2rem 0;
}

.required {
    color: #ff7f00;
}

/* Products List */
.products-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.product-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    margin-bottom: 2rem;
}

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

.product-item:hover {
    background: #f8faf9;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.product-name {
    color: #1e829e;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-source-name {
    font-weight: normal;
    color: #666;
}

.product-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    vertical-align: baseline;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-expired {
    background: #f8d7da;
    color: #721c24;
}

.status-revoked {
    background: #e0e0e0;
    color: #424242;
}

.status-cancelled {
    background: #fff3cd;
    color: #856404;
}

.status-pending {
    background: #d1ecf1;
    color: #0c5460;
}

.status-new {
    background: #cfe2ff;
    color: #084298;
}

.product-meta {
    color: #666;
    font-size: 1rem;
    line-height: 1.4;
}

.product-meta-footer {
    text-align: center;
    margin-top: 1rem;
}

.meta-separator {
    margin: 0 0.5rem;
    color: #ccc;
}

/* Devices List */
.devices-list {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8faf9;
    border-radius: 8px;
    border-left: 3px solid #1e829e;
}

.devices-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
}

.device-item {
    padding: 0.4rem 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.device-item:first-child {
    padding-top: 0;
}

.device-item strong {
    color: #333;
}

.device-status-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 500;
    vertical-align: middle;
}

.device-status-badge.status-linked {
    background: #d4edda;
    color: #155724;
}

.device-status-badge.status-other {
    background: #e0e0e0;
    color: #424242;
}

/* Product Title and License Code */
.product-title {
    color: #1e829e;
    font-size: 1.1rem;
}

.license-label {
    color: #333;
    font-weight: normal;
}

.license-code {
    background: #f5f5f5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.9em;
    color: #333;
}

/* Devices Table */
.devices-table-wrapper {
    margin-top: 1rem;
    overflow-x: auto;
    background: #f8faf9;
    border-radius: 8px;
    border-left: 3px solid #1e829e;
}

[dir="rtl"] .devices-table-wrapper {
    border-left: none;
    border-right: 3px solid #1e829e;
}

.devices-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 17px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    table-layout: fixed;
}

.devices-table thead {
    background: #e0f2f7;
}

.devices-table th {
    text-align: start;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #1e829e;
    border-bottom: 2px solid #1e829e;
    white-space: normal;
    word-wrap: break-word;
}

.devices-table td {
    padding: 0.75rem 1rem;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 0;
}

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

.devices-table tbody tr {
    content-visibility: auto;
    contain-intrinsic-size: auto 50px;
}

.devices-table tbody tr:hover {
    background: rgba(30, 130, 158, 0.05);
}

.devices-table td strong {
    color: #333;
    font-weight: 600;
}

.devices-table td small {
    color: #999;
    font-size: 0.85em;
}

/* Column widths - applied only to th elements */
.devices-table th:nth-child(1) {
    width: 25%;
}

.devices-table th:nth-child(2) {
    width: 29%;
}

.devices-table th:nth-child(3) {
    width: 11%;
}

.devices-table th:nth-child(4) {
    width: 10%;
}

.devices-table th:nth-child(5) {
    width: 25%;
}

/* Typography for specific columns */
.devices-table .col-model strong {
    color: #666;
    font-size: 17px;
    font-weight: 600;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

.devices-table .col-device-id {
    font-family: monospace;
    font-size: 0.95em;
}

.devices-table .col-app-version {
    font-family: monospace;
    font-size: 0.95em;
}

.devices-table .col-last-active {
    font-family: monospace;
    font-size: 0.95em;
    text-align: end;
}

.devices-header {
    color: #666;
    font-size: 17px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.show-all-link {
    color: #1e829e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.show-all-link:hover {
    color: #156675;
    text-decoration: underline;
}

.btn-download-csv-link {
    color: #1e829e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btn-download-csv-link:hover {
    color: #156675;
    text-decoration: underline;
}

/* Settings Section */
.settings-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.settings-section h2 {
    color: #1e829e;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.settings-section h3 {
    color: #1e829e;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.settings-form {
    max-width: 500px;
}

/* Settings forms use .form-group styles (no custom overrides needed) */

.readonly-field {
    padding: 0.875rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #666;
    font-size: 1rem;
}

.settings-form .form-actions {
    margin-top: 1.5rem;
}

.settings-divider {
    border: none;
    border-top: 2px solid #ddd;
    margin: 2.5rem 0;
}

/* Verification pending label */
.form-group label.label-pending {
    color: #e67e00;
}

.form-group label.label-pending::before {
    content: "⚠";
    margin-right: 0.4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 0 20px;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .dashboard-content {
        grid-template-columns: 1fr;
    }

    .dashboard-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-meta {
        font-size: 0.9rem;
    }

    .meta-separator {
        margin: 0 0.4rem;
    }

    .settings-section {
        padding: 1.5rem;
    }

    .settings-form {
        max-width: 100%;
    }
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    max-width: 400px;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-notification.toast-success {
    border-left: 4px solid #28a745;
    color: #155724;
}

.toast-notification.toast-error {
    border-left: 4px solid #dc3545;
    color: #721c24;
}

/* RTL (Right-to-Left) Language Support */
/* The entire page flows RTL naturally from the html[dir="rtl"] attribute */
/* Only center-aligned hero sections maintain center alignment */

html[dir="rtl"] .hero {
    text-align: center;
}

/* Fix dropdown menus to stick to the left side of the toggle button in RTL */
html[dir="rtl"] .dropdown-menu {
    right: auto;
    left: 0;
}
