* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #f8f9fa;
}

/* Two-Column Grid Layout */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* iPad: Single column layout for calculator grid */
@media (min-width: 769px) and (max-width: 1024px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile: Single column layout for calculator grid */
@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}

/* How It Works Section Styles */
.how-it-works-section {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    justify-content: space-between;
}

.how-it-works-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.section-number {
    font-size: 5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.section-text {
    padding-top: 10px;
}

.section-image {
    width: 437px;
    height: auto;
    max-height: 225px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
    border: 4px solid #3D4959;
    background-color: #F8F9FA;
}

/* Mobile responsive for How It Works sections */
@media (max-width: 768px) {
    .how-it-works-section {
        flex-direction: column;
    }
    
    .how-it-works-section.image-left {
        flex-direction: column;
    }
    
    .how-it-works-section .section-image {
        width: 100%;
        height: auto;
        max-height: 250px;
        order: 2;
    }
    
    .how-it-works-section .how-it-works-content {
        order: 1;
    }
    
    .section-number {
        font-size: 3rem;
    }
}

/* Range Slider Styling */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b4fbb;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b4fbb;
    cursor: pointer;
    border: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: linear-gradient(to right, #3b4fbb 0%, #3b4fbb var(--value), #ddd var(--value), #ddd 100%);
    border-radius: 5px;
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #ddd;
    border-radius: 5px;
}

.navbar {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: white;
}

.nav-links a.active {
    color: white;
    font-weight: 600;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Mobile Nav Links */
.nav-links.mobile-open {
    display: flex !important;
}

.nav-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover,
.nav-btn:active,
.nav-btn:focus {
    background: white;
    color: #2c3e50 !important;
}

.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?q=80&w=2000') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    padding-top: 80px;
    box-sizing: border-box;
}

/* Short viewport height - prevent heading from hiding under navbar */
@media (max-height: 700px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 100px;
        padding-bottom: 40px;
    }
}

@media (max-height: 500px) {
    .hero-section {
        padding-top: 80px;
        padding-bottom: 30px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        margin-bottom: 30px;
    }
    
    .hero-features {
        margin-top: 30px;
    }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
}

.hero-tag {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    margin-bottom: 50px;
    line-height: 1.5;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    gap: 40px;
    margin-top: 60px;
}

.hero-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    max-width: 400px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text {
    flex: 1;
}

.feature-text p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.social-sidebar {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    background: white;
    color: #2c3e50;
}

.cta-button {
    display: inline-block;
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 50px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.cta-button:hover {
    background: white;
    color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 60px;
}

.section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 40px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

input[type="text"] {
    width: 100%;
    padding: 14px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #f8f9fa;
}

input[type="text"]:focus {
    outline: none;
    border-color: #2c3e50;
    background: white;
}

small {
    display: block;
    margin-top: 6px;
    color: #7f8c8d;
    font-size: 0.85rem;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.3);
}

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

.btn-secondary {
    padding: 12px 24px;
    background: white;
    color: #2c3e50;
    border: 2px solid #2c3e50;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #2c3e50;
    color: white;
}

.info-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid #2c3e50;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
}

.info-box h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-box p {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.7;
}

.loading {
    background: white;
    border-radius: 15px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2c3e50;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-box {
    background: #fff5f5;
    border-left: 5px solid #e74c3c;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.error-box h3 {
    color: #e74c3c;
    margin-bottom: 10px;
}

.error-box p {
    color: #c0392b;
}

.results-card {
    background: white;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.results-card h2 {
    color: #2c3e50;
    margin-bottom: 35px;
    text-align: center;
    font-size: 2rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.result-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.05rem;
}

.result-value {
    color: #34495e;
    font-size: 1.2rem;
    font-weight: 500;
}

.highlight {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 35px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: center;
}

.highlight .result-label {
    color: white;
    font-size: 1.3rem;
    display: block;
    margin-bottom: 15px;
}

.highlight .result-value {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
}

.badge {
    background: #2c3e50;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.maps-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.map-view {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.map-view h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.user-dropdown {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 55px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
}

.user-avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-fullname {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
    margin-bottom: 4px;
}

.user-email {
    color: #7f8c8d;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-divider {
    height: 1px;
    background: #e1e8ed;
    margin: 0;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #2c3e50 !important;
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 14px;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #2c3e50 !important;
}

.history-section {
    margin-top: 0;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.history-list {
    max-height: 700px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    cursor: pointer;
}

.history-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    background: #f8f9fa;
}

.history-details {
    flex: 1;
}

.history-address {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.history-stats {
    display: flex;
    gap: 25px;
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.history-date {
    font-size: 0.85rem;
    color: #95a5a6;
}

.cap-rate-badge {
    background: #2c3e50;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
}

.btn-delete {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

/* History Table Styles */
.history-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.history-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.history-refresh-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.history-refresh-btn:hover {
    background: #f0f0f0;
    color: #333;
}

input.history-filter-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    width: 300px !important;
    outline: none;
    transition: border-color 0.2s;
    text-align: left;
}

.history-filter-input:focus {
    border-color: #3b4fbb;
}

.history-filter-input::placeholder {
    color: #999;
}

.history-table-container {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.history-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.history-table th {
    text-align: left;
    padding: 10px 12px;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.history-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.history-table tbody tr {
    cursor: pointer;
    transition: background 0.15s;
}

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

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

.history-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.history-type-ltr {
    background: #e8f4fd;
    color: #1a73e8;
}

.history-type-str {
    background: #fef3e8;
    color: #e67700;
}

.history-actions {
    position: relative;
}

.history-actions-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    color: #666;
    font-size: 1.2rem;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.2s;
}

.history-actions-btn:hover {
    background: #e9ecef;
}

.history-actions-menu {
    display: none;
    position: fixed;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 120px;
    z-index: 9999;
    overflow: hidden;
}

.history-actions-menu.active {
    display: block;
}

.history-action-item {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.85rem;
    color: #333;
    transition: background 0.2s;
}

.history-action-item:hover {
    background: #f8f9fa;
}

.history-action-item.delete {
    color: #e74c3c;
}

.history-action-item.delete:hover {
    background: #fdf2f2;
}

.no-history-row td {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.btn-delete:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.loading-text, .no-history, .error-text {
    text-align: center;
    color: #95a5a6;
    padding: 40px;
    font-size: 1.05rem;
}

footer {
    text-align: center;
    color: #7f8c8d;
    margin-top: 60px;
    padding: 40px 0;
    font-size: 0.9rem;
    border-top: 1px solid #e0e0e0;
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 25px;
    }
    
    .nav-container, .hero-content, .main-content {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* iPad Responsive Styles (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Navbar adjustments for iPad */
    .navbar {
        padding: 15px 0;
    }
    
    .nav-container {
        padding: 0 25px;
    }
    
    .nav-brand {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .nav-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    /* Hero section for iPad */
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 60px;
        align-items: flex-start;
    }
    
    .hero-content {
        padding: 30px 40px 0;
    }
    
    .hero-title {
        font-size: 3rem;
        letter-spacing: 2px;
    }
    
    .hero-tag {
        font-size: 0.85rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 500px;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 20px;
        margin-top: 40px;
    }
    
    .hero-feature {
        max-width: 100%;
    }
    
    /* Social sidebar hidden on iPad */
    .social-sidebar {
        display: none;
    }
    
    /* Main content for iPad */
    .main-content {
        padding: 50px 30px;
    }
    
    /* Section titles for iPad */
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Cards for iPad */
    .card {
        padding: 30px;
    }
    
    .results-card {
        padding: 30px;
    }
    
    /* How It Works sections for iPad */
    .how-it-works-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .how-it-works-section.image-left {
        flex-direction: column;
    }
    
    .how-it-works-section .section-image {
        width: 100%;
        height: 220px;
        order: 2;
    }
    
    .how-it-works-section .how-it-works-content {
        order: 1;
    }
    
    .section-number {
        font-size: 4rem;
    }
    
    /* Feature grid for iPad - 2 columns */
    .card > div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    /* About section cards for iPad */
    .section > div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }
    
    /* History table for iPad */
    .history-table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    input.history-filter-input {
        width: 100% !important;
    }
    
    /* CTA section for iPad */
    .card[style*="background: linear-gradient"] h2 {
        font-size: 2rem !important;
    }
    
    .card[style*="background: linear-gradient"] p {
        font-size: 1rem !important;
    }
    
    /* Footer for iPad */
    footer {
        padding: 30px 20px;
    }
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        right: 0;
        width: 280px;
        height: calc(100vh - 60px);
        background: rgba(44, 62, 80, 0.98);
        flex-direction: column;
        padding: 30px 20px;
        gap: 0;
        z-index: 1001;
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.mobile-open {
        display: flex;
    }
    
    .nav-links a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: left;
        white-space: nowrap;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-links .nav-btn {
        width: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin: 20px auto;
        padding: 12px 25px !important;
        border-bottom: none !important;
        box-sizing: border-box;
        line-height: 1.4;
        min-height: 50px;
    }
    
    .user-dropdown {
        width: 100%;
        padding: 15px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 10px;
    }
    
    .nav-brand {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-brand {
        font-size: 1rem;
    }
    
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 60px;
    }
    
    .hero-content {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .social-sidebar {
        display: none;
    }
    
    .main-content {
        padding: 40px 20px;
    }
    
    .card, .results-card {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .highlight .result-value {
        font-size: 2.5rem;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }
    
    .history-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-delete {
        width: 100%;
    }
    
    /* History table - Mobile: show only Type and Address */
    .history-table th:nth-child(1),
    .history-table td:nth-child(1),
    .history-table th:nth-child(4),
    .history-table td:nth-child(4),
    .history-table th:nth-child(5),
    .history-table td:nth-child(5),
    .history-table th:nth-child(6),
    .history-table td:nth-child(6) {
        display: none !important;
    }
    
    .history-table {
        font-size: 0.8rem;
    }
    
    .history-table th,
    .history-table td {
        padding: 10px 8px;
    }
    
    .history-table-container {
        max-height: 400px;
    }
    
    input.history-filter-input {
        width: 100% !important;
    }
    
    .maps-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Calculator Results KPI Grid - Mobile */
    .kpi-metrics-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    
    .kpi-metrics-grid > div {
        padding: 12px !important;
    }
    
    .kpi-metrics-grid > div > div:first-child {
        font-size: 0.75rem !important;
        margin-bottom: 5px !important;
    }
    
    .kpi-metrics-grid > div > div:nth-child(2) {
        font-size: 0.6rem !important;
    }
    
    .kpi-metrics-grid > div > div:nth-child(3) {
        font-size: 1.5rem !important;
    }
    
    /* Financing and Operating Expenses Grid - Mobile */
    .financing-expenses-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .financing-expenses-grid > div {
        padding: 15px !important;
    }
    
    .financing-expenses-grid h3 {
        font-size: 1.2rem !important;
    }
    
    /* Timer Controls - Mobile */
    .timer-controls-row {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    
    .timer-controls-row > input[type="text"] {
        flex: 1 1 100% !important;
        order: 1;
    }
    
    .timer-controls-row > div:nth-child(2),
    .timer-controls-row > div:nth-child(3) {
        order: 2;
    }
    
    .timer-controls-row > #timerDisplay {
        order: 3;
        flex: 1;
        text-align: center !important;
        min-width: 80px !important;
        font-size: 1.1rem !important;
    }
    
    .timer-controls-row > #timerBtn {
        order: 4;
        width: 44px !important;
        height: 44px !important;
    }
    
    .timer-controls-row > button:last-child {
        order: 5;
        width: 36px !important;
        height: 36px !important;
    }
    
    /* Time Entry Row - Mobile */
    .time-entry-row {
        flex-wrap: wrap !important;
        padding: 12px 10px 12px 15px !important;
        gap: 8px !important;
    }
    
    .time-entry-row > div:nth-child(1) {
        width: calc(100% - 40px) !important;
        flex-shrink: 1 !important;
        order: 1;
    }
    
    .time-entry-row > div:nth-child(2) {
        width: auto !important;
        min-width: 0 !important;
        flex: 0 1 auto !important;
        max-width: 120px;
        order: 3;
    }
    
    .time-entry-row > div:nth-child(3) {
        width: auto !important;
        min-width: 0 !important;
        flex: 0 1 auto !important;
        order: 4;
        display: none !important;
    }
    
    .time-entry-row > div:nth-child(4) {
        width: auto !important;
        font-size: 0.75rem !important;
        order: 5;
    }
    
    .time-entry-row > div:nth-child(5) {
        width: auto !important;
        font-size: 0.85rem !important;
        order: 6;
    }
    
    .time-entry-row > .row-menu-container {
        position: absolute !important;
        right: 10px;
        top: 12px;
        order: 2;
    }
    
    .time-entry-row {
        position: relative;
    }
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 30px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
    margin-top: 20px;
}

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

.tab-button:hover {
    color: #3b4fbb;
}

.tab-button.active {
    color: #3b4fbb;
    border-bottom-color: #3b4fbb;
}

/* Tab Content */
.tab-content {
    display: none;
}

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

/* Settings Container */
.settings-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.settings-row {
    padding: 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-label {
    flex: 1;
    max-width: 400px;
}

.settings-control {
    flex: 1;
    max-width: 500px;
}

/* Hide number input spinners in settings */
.settings-control input[type="number"]::-webkit-outer-spin-button,
.settings-control input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.settings-control input[type="number"] {
    -moz-appearance: textfield;
}

@media (max-width: 768px) {
    .settings-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .settings-label,
    .settings-control {
        max-width: 100%;
    }
}

/* Channel Tabs - Vertical Sidebar */
.channel-tab-vertical {
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    margin-bottom: 6px;
}

.channel-tab-vertical:hover {
    background: #e8e8e8;
    color: #2c3e50;
}

.channel-tab-vertical.active {
    background: #2c3e50;
    color: white;
}

/* Mobile Menu Button - Hidden on desktop */
.mobile-menu-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #2c3e50;
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.4);
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.5);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    opacity: 0;
    transition: opacity 0.3s;
}

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

/* Mobile Menu Popup */
.mobile-menu {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1003;
    min-width: 220px;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.open {
    display: block;
    transform: translateY(0) scale(1);
    opacity: 1;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.mobile-menu-header span {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #7f8c8d;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    color: #2c3e50;
}

.mobile-menu-links {
    padding: 10px 0;
}

.mobile-menu-links a {
    display: block;
    padding: 14px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.mobile-menu-links a:hover {
    background: #f8f9fa;
}

/* Mobile Get Started button - Hidden on desktop */
.mobile-get-started {
    display: none;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Hide brand text, show only logo */
    .brand-text {
        display: none;
    }
    
    /* Show mobile menu */
    .mobile-menu {
        display: none;
    }
    
    .mobile-menu.open {
        display: block;
    }
    
    /* Navbar adjustments for mobile */
    .navbar {
        padding: 12px 0;
    }
    
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        padding: 0 15px;
    }
    
    /* Hide desktop nav links on mobile */
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 999;
        gap: 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        color: #2c3e50;
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
        width: 100%;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-links a:hover {
        background: #f8f9fa;
    }
    
    .mobile-menu-overlay.active {
        display: block;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }
    
    /* Show mobile Get Started button in navbar */
    .mobile-get-started {
        display: inline-block;
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    /* Hero section mobile adjustments */
    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .hero-tag {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    /* Section numbers on mobile */
    .card > div[style*="flex-direction: column"] > div[style*="align-items: flex-start"] span[style*="font-size: 5rem"] {
        font-size: 3rem;
    }
}

/* Calendar drag-to-create styles */
.calendar-day-column:not(.calendar-day-blocked),
.daily-calendar-inner:not(.calendar-day-blocked) {
    cursor: crosshair;
}

.calendar-day-column.calendar-day-blocked,
.daily-calendar-inner.calendar-day-blocked {
    cursor: not-allowed;
}

/* Prevent text selection during drag */
.create-entry-preview {
    user-select: none;
    -webkit-user-select: none;
}
