/*!
 * Bangladesh Land Measurement Converter
 * Copyright (c) 2025 Tahsin Billah
 * Licensed under MIT (https://github.com/Tahsin2k6/bd-land-conversion/blob/main/LICENSE)
 */
:root {
    --primary-color: #10B981;
    --primary-dark-color: #059669;
    --light-green-bg: #ECFDF5;
    --dark-green-text: #065F46;
    --gray-text: #6B7280;
    --gray-border: #D1D5DB;
    --card-bg: #FFFFFF;
    --body-bg: #f8fafc;
    --table-header-bg: #F9FAFB;
    --table-border: #E5E7EB;
    --footer-bg: #1F2937;
}


body {
    font-family: 'Roboto', sans-serif;
}

.main {
    width: 100%;
}

.premium-card {
    width: 100%;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.premium-button {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.premium-button:hover {
    background-color: var(--primary-dark-color);
}

.action-button {
    background-color: #4B5563;
    color: white;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-button:hover {
    background-color: #374151;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.action-button .material-icons {
    font-size: 1.25rem;
}

#inputValue{
    border-radius: 8px;
    border: 1px solid var(--gray-border);
    padding: 0.75rem 1rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}
#convertedValue{
    border-radius: 8px;
    border: 1px solid var(--gray-border);
    padding: 0.75rem 1rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}
.select-field {
    border-radius: 8px;
    border: 1px solid var(--gray-border);
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

#inputValue:focus{
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
#convertedValue:focus{
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
.select-field:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

#disclaimer {
    font-weight: bold;
    font-size: 0.75rem;
    color: hsl(160, 84%, 39%);
    margin-top: 1rem;
}
#disclaimer:hover {
    color: hsl(160, 84%, 29%);
    text-decoration: underline;
}

.info-box {
    background-color: var(--light-green-bg);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
}

.conversion-link {
    color: var(--primary-dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.conversion-link:hover {
    color: #047857;
    text-decoration: underline;
}

.table-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.table th,
.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--table-border);
}

.table th {
    background-color: var(--table-header-bg);
    color: #374151;
    font-weight: 500;
    text-align: left;
}

.table tr:last-child td {
    border-bottom: none;
}

.sidebar {
    background-color: #E0F2F7;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #00796B;
    margin-bottom: 1rem;
}

#vertical-ad-space {
    height: 400px;
    width: 100%;
}


.browse-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    border: 1px solid #e5e7eb;
}

.browse-card:hover {
   transform: translateY(-3px);
   box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Desktop */
@media (max-width: 1920px) {
    .main {
        width: 100%;
    }
    .premium-card {
        width: 100%;
    }
    .table-container {
        width: 100%;
    }
    .sticky-ad-banner {
        display: none;
    }

}

/* Tablet */
@media (max-width: 1023px) {
    .main {
        width: 100%;
    }
    .premium-card {
        width: 100%;
    }
    .table-container {
        width: 100%;
    }
    #vertical-ad-space {
        display: none;
    }
    .sticky-ad-banner {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        min-height: 50px;
        background-color: #f1f1f1;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
        justify-content: center;
        align-items: center;
        color: #6c7a89;
        font-size: 0.9em;
    }
}
/* mobile */
@media (max-width: 360px) {
    .main {
        width: 100%;
    }
    .premium-card {
        width: 100%;
    }
    .table-container {
        width: 100%;
    }
    #vertical-ad-space {
        display: none;
    }
    .sticky-ad-banner {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        min-height: 50px;
        background-color: #f1f1f1;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
        justify-content: center;
        align-items: center;
        color: #6c7a89;
        font-size: 0.9em;
    }

}
