/* SmartCalcs - Desktop Optimization CSS */

/* DESKTOP TEXT AND TYPOGRAPHY IMPROVEMENTS */
@media (min-width: 769px) {
    /* Enhanced text contrast for desktop */
    body {
        color: #1a202c !important;
        font-weight: 500 !important;
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    
    p, div, span, li {
        color: #1a202c !important;
        font-weight: 500 !important;
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    
    /* Desktop headings with better contrast */
    h1 {
        font-size: 3rem !important; /* 48px */
        font-weight: 800 !important;
        color: #1a202c !important;
        line-height: 1.2 !important;
        letter-spacing: -0.025em !important;
        margin-bottom: 2rem !important;
    }
    
    h2 {
        font-size: 2.5rem !important; /* 40px */
        font-weight: 700 !important;
        color: #1a202c !important;
        line-height: 1.3 !important;
        letter-spacing: -0.025em !important;
        margin-bottom: 1.5rem !important;
    }
    
    h3 {
        font-size: 2rem !important; /* 32px */
        font-weight: 700 !important;
        color: #1a202c !important;
        line-height: 1.3 !important;
        margin-bottom: 1.5rem !important;
    }
    
    h4 {
        font-size: 1.5rem !important; /* 24px */
        font-weight: 600 !important;
        color: #1a202c !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
    }
    
    h5 {
        font-size: 1.25rem !important; /* 20px */
        font-weight: 600 !important;
        color: #1a202c !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
    }
    
    h6 {
        font-size: 1.125rem !important; /* 18px */
        font-weight: 600 !important;
        color: #1a202c !important;
        line-height: 1.4 !important;
        margin-bottom: 0.75rem !important;
    }
}

/* DESKTOP BUTTON IMPROVEMENTS */
@media (min-width: 769px) {
    .btn, button, .tool-btn, .calculator-btn, .action-btn {
        font-size: 16px !important;
        font-weight: 600 !important;
        padding: 16px 32px !important;
        min-height: 48px !important;
        border-radius: 12px !important;
        transition: all 0.3s ease !important;
        text-transform: none !important;
        letter-spacing: 0.025em !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
    }
    
    /* Primary buttons */
    .btn-primary, .tool-btn, .calculator-btn {
        background: #ff6b35 !important;
        color: white !important;
        border: none !important;
        box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3) !important;
    }
    
    .btn-primary:hover, .tool-btn:hover, .calculator-btn:hover {
        background: #e55a2b !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4) !important;
    }
    
    /* Secondary buttons */
    .btn-secondary {
        background: #2b6cb0 !important;
        color: white !important;
        border: none !important;
        box-shadow: 0 4px 14px rgba(43, 108, 176, 0.3) !important;
    }
    
    .btn-secondary:hover {
        background: #2c5282 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(43, 108, 176, 0.4) !important;
    }
    
    /* Outline buttons */
    .btn-outline {
        background: transparent !important;
        color: #ff6b35 !important;
        border: 2px solid #ff6b35 !important;
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1) !important;
    }
    
    .btn-outline:hover {
        background: #ff6b35 !important;
        color: white !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3) !important;
    }
}

/* DESKTOP FORM IMPROVEMENTS */
@media (min-width: 769px) {
    input, select, textarea {
        font-size: 16px !important;
        font-weight: 500 !important;
        color: #1a202c !important;
        background: white !important;
        border: 2px solid #e2e8f0 !important;
        border-radius: 10px !important;
        padding: 14px 16px !important;
        min-height: 48px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
        transition: all 0.3s ease !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    input:focus, select:focus, textarea:focus {
        border-color: #ff6b35 !important;
        box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1) !important;
        outline: none !important;
    }
    
    label {
        font-weight: 600 !important;
        font-size: 14px !important;
        color: #1a202c !important;
        margin-bottom: 8px !important;
        display: block !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
    
    .form-group {
        margin-bottom: 24px !important;
    }
}

/* DESKTOP NAVIGATION IMPROVEMENTS */
@media (min-width: 769px) {
    .navbar {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
        padding: 16px 0 !important;
    }
    
    .nav-container {
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 24px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .nav-logo, .brand-link {
        font-size: 24px !important;
        font-weight: 800 !important;
        color: #1a202c !important;
        text-decoration: none !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }
    
    .brand-text {
        font-size: 24px !important;
        font-weight: 800 !important;
        color: #ff6b35 !important;
    }
    
    .nav-links {
        display: flex !important;
        align-items: center !important;
        gap: 32px !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .nav-link {
        font-weight: 600 !important;
        color: #1a202c !important;
        font-size: 16px !important;
        text-decoration: none !important;
        padding: 12px 16px !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
    }
    
    .nav-link:hover {
        color: #ff6b35 !important;
        background: rgba(255, 107, 53, 0.1) !important;
        transform: translateY(-1px) !important;
    }
}

/* DESKTOP CARD AND CONTAINER IMPROVEMENTS */
@media (min-width: 769px) {
    .card, .tool-card, .calculator-section, .form-section {
        background: white !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 16px !important;
        padding: 32px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
        margin-bottom: 32px !important;
        transition: all 0.3s ease !important;
    }
    
    .card:hover, .tool-card:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    }
    
    .container, .main-container {
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 24px !important;
    }
    
    .tools-grid, .calculator-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
        gap: 32px !important;
        margin: 32px 0 !important;
    }
}

/* DESKTOP TABLE IMPROVEMENTS */
@media (min-width: 769px) {
    table {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 16px !important;
        background: white !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    }
    
    th {
        font-weight: 700 !important;
        color: #1a202c !important;
        background: #f7fafc !important;
        padding: 16px !important;
        text-align: left !important;
        font-size: 14px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
    
    td {
        font-weight: 500 !important;
        color: #1a202c !important;
        padding: 16px !important;
        border-bottom: 1px solid #e2e8f0 !important;
        font-size: 16px !important;
    }
    
    tr:hover {
        background: #f7fafc !important;
    }
}

/* DESKTOP CALCULATOR SPECIFIC IMPROVEMENTS */
@media (min-width: 769px) {
    .calculator-container {
        max-width: 1000px !important;
        margin: 0 auto !important;
        padding: 40px 24px !important;
    }
    
    .calculator-input {
        font-size: 20px !important;
        font-weight: 600 !important;
        text-align: center !important;
        color: #1a202c !important;
        padding: 20px !important;
        border-radius: 12px !important;
        border: 2px solid #e2e8f0 !important;
    }
    
    .calculator-result {
        font-size: 32px !important;
        font-weight: 800 !important;
        color: #ff6b35 !important;
        text-align: center !important;
        padding: 32px !important;
        background: #f7fafc !important;
        border-radius: 16px !important;
        margin: 32px 0 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    }
    
    .calculator-label {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #1a202c !important;
        margin-bottom: 8px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
    
    .form-row {
        display: flex !important;
        gap: 24px !important;
        margin-bottom: 24px !important;
    }
    
    .form-col {
        flex: 1 !important;
    }
}

/* DESKTOP LIST IMPROVEMENTS */
@media (min-width: 769px) {
    ul, ol {
        padding-left: 2rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    li {
        margin-bottom: 0.75rem !important;
        font-weight: 500 !important;
        color: #1a202c !important;
        line-height: 1.6 !important;
        font-size: 16px !important;
    }
    
    ul li::marker {
        color: #ff6b35 !important;
    }
    
    ol li::marker {
        color: #ff6b35 !important;
        font-weight: 700 !important;
    }
}

/* DESKTOP DROPDOWN IMPROVEMENTS */
@media (min-width: 769px) {
    .dropdown {
        position: relative !important;
    }
    
    .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        background: white !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
        padding: 8px 0 !important;
        min-width: 200px !important;
        z-index: 1000 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-10px) !important;
        transition: all 0.3s ease !important;
    }
    
    .dropdown:hover .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
    
    .dropdown-menu a {
        display: block !important;
        padding: 12px 20px !important;
        color: #1a202c !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        font-size: 14px !important;
        transition: all 0.3s ease !important;
    }
    
    .dropdown-menu a:hover {
        background: rgba(255, 107, 53, 0.1) !important;
        color: #ff6b35 !important;
    }
}

/* DESKTOP FOOTER IMPROVEMENTS */
@media (min-width: 769px) {
    footer {
        background: #1a202c !important;
        color: white !important;
        padding: 48px 0 32px !important;
        margin-top: 64px !important;
    }
    
    .footer-content {
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 24px !important;
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 32px !important;
    }
    
    .footer-section h3 {
        color: #ff6b35 !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        margin-bottom: 16px !important;
    }
    
    .footer-section p, .footer-section a {
        color: #cbd5e0 !important;
        font-size: 16px !important;
        line-height: 1.6 !important;
        text-decoration: none !important;
    }
    
    .footer-section a:hover {
        color: #ff6b35 !important;
    }
}

/* DESKTOP ACCESSIBILITY IMPROVEMENTS */
@media (min-width: 769px) {
    *:focus {
        outline: 2px solid #ff6b35 !important;
        outline-offset: 2px !important;
    }
    
    .skip-link {
        position: absolute !important;
        top: -40px !important;
        left: 6px !important;
        background: #1a202c !important;
        color: white !important;
        padding: 8px 16px !important;
        text-decoration: none !important;
        border-radius: 4px !important;
        z-index: 1001 !important;
    }
    
    .skip-link:focus {
        top: 6px !important;
    }
}