/* Container Styles */
    .container {
        max-width: 1000px;
        margin: 30px auto;
        padding: 0 20px;
    }
    
    .card {
        background-color: white;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.08);
        padding: 30px;
        margin-bottom: 30px;
        border: 1px solid #e2e8f0;
        position: relative;
        z-index: 1;
    }
    
    .page-title {
        text-align: center;
        margin-bottom: 30px;
        font-weight: 700;
        color: #1e293b;
        font-size: 32px;
    }
    
    .converter-container {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .converter-row {
        display: flex;
        gap: 15px;
        margin-bottom: 20px;
        align-items: flex-end;
        flex-wrap: wrap;
    }
    
    .converter-group {
        flex: 1;
        min-width: 150px;
        position: relative;
    }
    
    .converter-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #334155;
    }
    
    .converter-group select {
        width: 100%;
        padding: 12px 15px;
        border-radius: 10px;
        border: 1px solid #cbd5e1;
        font-size: 16px;
        background-color: white;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23334155'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 15px center;
        background-size: 16px;
        cursor: pointer;
        position: relative;
        z-index: 2;
    }
    
    /* Ensure dropdowns stay within container on mobile */
    @media (max-width: 768px) {
        .converter-group select {
            max-width: 100%;
            position: relative;
        }
        
        select:focus {
            position: relative;
        }
    }
    
    .convert-btn {
        background-color: rgb(83, 104, 5);
        color: white;
        border: none;
        padding: 14px 30px;
        border-radius: 10px;
        cursor: pointer;
        font-size: 16px;
        font-weight: 600;
        transition: all 0.3s;
        margin-top: 10px;
        width: 100%;
    }
    
    .convert-btn:hover { 
        transform: translateY(-2px);
    }
    
    .result-container {
        margin-top: 30px;
        padding: 25px;
        background-color: #f8fafc;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        display: none; 
    }
    
    .result-title {
        font-weight: 700;
        margin-bottom: 25px;
        color: #1e293b;
        font-size: 24px;
        text-align: center;
        padding-bottom: 15px;
        border-bottom: 2px solid #e2e8f0;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .result-table {
        width: 100%;
        border-collapse: collapse;
    }
    
    .result-table td {
        padding: 15px 20px;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .result-table tr:last-child td {
        border-bottom: none;
    }
    
    .result-label {
        font-weight: 600;
        color: #334155;
        width: 35%;
        padding-right: 30px;
    }
    
    .result-value {
        color: #1e293b;
        width: 20%;
    }
    
    /* Responsive Design */
    @media (max-width: 768px) {
        .converter-row {
            flex-direction: column;
        }
        
        .converter-group {
            width: 100%;
        }
        
        .result-table .result-label {
            width: 40%;
            padding-right: 20px;
        }
        
        .result-table .result-value {
            width: 60%;
        }
        
        .result-table td {
            padding: 12px 15px;
        }
    }
    
    @media (max-width: 480px) {
        .container {
            padding: 0 15px;
        }
        
        .card {
            padding: 20px;
        }
        
        .page-title {
            font-size: 26px;
        }
        
        .result-title {
            font-size: 20px;
        }
        
        .result-table td {
            padding: 10px 12px;
            font-size: 14px;
        }
        
        .result-label {
            width: 45%;
            padding-right: 15px;
        }
        
        .result-value {
            width: 55%;
        }
        
        .converter-group select {
            padding: 10px 12px;
            font-size: 14px;
            border-radius: 8px;
        }
        
        .convert-btn {
            padding: 12px 20px;
            font-size: 15px;
            border-radius: 8px;
        }
    }
    
    @media (max-width: 360px) {
        .result-table {
            display: block;
            overflow-x: auto;
            white-space: nowrap;
        }
        
        .result-table td {
            display: table-cell;
        }
    }
    /* ===== DATE CONVERTER - ALL DROPDOWN OPTIONS ===== */
    #from-calendar option, #to-calendar option, #month option, #day option, #year option {
        font-weight: 550 !important;
        color: rgb(54, 53, 53);
    }


/* Urdu mein arrow left side for date converter */
html[dir="rtl"] #from-calendar,
html[dir="rtl"] #to-calendar,
html[dir="rtl"] #month,
html[dir="rtl"] #day,
html[dir="rtl"] #year,
html[dir="rtl"] .converter-group select {
    background-position: left 15px center !important;
    padding-right: 15px;
    padding-left: 35px;
}