:root {
    --primary: #6366f1;
    --bg: #020617;
    --card: rgba(30, 41, 59, 0.7);
    --text: #f8fafc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

.background-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #020617 100%);
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

header h1 { font-size: 2.5rem; margin-bottom: 10px; }
header span { color: var(--primary); }
::selection {
    background: var(--primary);
    color: white;
}
.calculator-card {
   background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(15px);
   border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
   box-shadow: 0 0 40px rgba(99, 102, 241, 0.1);
}
.badge {
    position: absolute;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    color: white;
    font-size: 11px;
   padding: 4px 12px;
    border-radius: 20px;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
    font-weight: bold;
}
.time-box.highlight {
    border: 2px solid #f59e0b;
    transform: scale(1.05);
    background: rgba(245, 158, 11, 0.1);
    position: relative;
}
html {
    scroll-behavior: smooth;
}

.btn-nap {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    border: none;
    padding: 0 20px; /* Padding barabar kar di */
    height: 46px;    /* Height fix kar di */
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(234, 88, 12, 0.3);
    font-family: 'Poppins', sans-serif;
}
.btn-nap:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.5);
}
.btn-primary:hover, .btn-whatsapp:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
    filter: brightness(1.1);
}

.time-box {
    transition: all 0.3s ease;
}

.time-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    cursor: pointer;
}
.tabs { display: flex; gap: 10px; margin-bottom: 30px; justify-content: center; }
.tab-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--text);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}
.tab-btn.active { background: var(--primary); }

.input-group label { display: block; margin-bottom: 15px; font-size: 1.1rem; }
input[type="time"] {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--primary);
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn-primary {
    display: block; width: 100%; max-width: 300px; margin: 0 auto;
    background: var(--primary);
    border: none; padding: 15px;
    color: white; border-radius: 10px;
    font-weight: 600; cursor: pointer;
    font-size: 1.1rem; box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.results-area { margin-top: 40px; animation: fadeIn 0.5s ease-in; }
.time-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px; margin-top: 20px;
}
.time-box {
    position: relative;
    background: rgba(99, 102, 241, 0.2);
    padding: 20px; border-radius: 15px;
    padding-top: 40px; /* Is se badge ke liye jagah ban jayegi */
    margin-top: 15px;
    border: 1px solid var(--primary);
}
.time-box h4 { font-size: 1.3rem; margin-bottom: 5px; }
.time-box span { font-size: 0.8rem; opacity: 0.8; }

.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.content-section {
    max-width: 800px; /* Text ko bohat phailne se rokega */
    margin: 60px auto; /* Center mein rakhega */
    text-align: left; /* Parhne mein asani ke liye left align behtar hai */
    padding: 20px;
    line-height: 1.8; /* Lines ke darmiyan thora gap */
}

.content-section h2, .content-section h3 {
    color: var(--primary);
    margin-bottom: 15px;
    margin-top: 30px;
}

.content-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
}
.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center; /* Sab ko center line mein rakhega */
    margin-top: 25px;
    flex-wrap: wrap; /* Mobile par space kam ho to niche aa jayein warna line mein rahein */
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
    height: 46px;       /* Height lazmi add karein */
    padding: 0 20px;    /* Padding ko 0 20px karein */
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

.share-results p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    opacity: 0.8;
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--primary);
    height: 46px;       /* Height lazmi add karein */
    padding: 0 20px;    /* Padding ko 0 20px karein */
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
}

.btn-secondary:hover {
    background: var(--primary);
    transform: scale(1.05);
}