/* ডিফল্ট স্টাইল রিসেট */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent login page flicker - hide login screen initially */
#loginScreen {
    display: none;
}

/* PWA Layout Stability - Prevent horizontal shift */
html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Sans Bengali', 'Arial', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
}

/* Keep header and login always above any ad/anchor overlays */
.app-header {
    z-index: 10000;
}

.login-container {
    position: relative;
    z-index: 20000;
}

.ad-banner-top{
display:flex;
justify-content:center;
margin:8px 0;
}
/* === LAYOUT & RESPONSIVENESS FIXES === */

/* 1. Center Alignment */
.bengali-details {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

.bengali-item {
    text-align: center;
    margin: 0 auto 15px auto;
    max-width: 100%;
}

.special-day-item {
    text-align: center;
    margin: 0 auto 10px auto;
    max-width: 100%;
}

.event-details {
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
}

/* 2. Global Box-Sizing Fix */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 3. Overflow Prevention */
.bengali-details,
.bengali-item,
.special-day-item,
.event-details,
.memorable-day-item,
.memorable-day-item p {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* 4. Container Fixes */
.tab-content,
.modal-content,
.calendar-container,
.special-days-section {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0 auto;
}

/* 5. Mobile Responsive Rules */
@media (max-width: 480px) {
    .bengali-details {
        padding: 0 5px;
    }
    
    .bengali-item {
        padding: 8px 5px;
        margin-bottom: 10px;
        font-size: 0.9em;
    }
    
    .special-day-item {
        padding: 6px 5px;
        margin-bottom: 8px;
    }
    
    .memorable-day-item p {
        font-size: 0.85em;
        line-height: 1.3;
    }
    
    .tab-content {
        padding: 10px 5px;
    }
    
    .modal-content {
        margin: 5px;
        max-width: calc(100vw - 10px);
    }
}

@media (max-width: 360px) {
    .bengali-item {
        font-size: 0.8em;
        padding: 6px 3px;
    }
    
    .special-day-item {
        font-size: 0.75em;
        padding: 4px 3px;
    }
    
    .memorable-day-item p {
        font-size: 0.8em;
    }
    
    .tab-content {
        padding: 8px 3px;
    }
}

@media (max-width: 320px) {
    .bengali-item {
        font-size: 0.75em;
        padding: 5px 2px;
    }
    
    .special-day-item {
        font-size: 0.7em;
        padding: 3px 2px;
    }
    
    .memorable-day-item p {
        font-size: 0.75em;
    }
    
    .tab-content {
        padding: 5px 2px;
    }
}

/* 6. Prevent Horizontal Scroll */
body,
html {
    overflow-x: hidden;
    max-width: 100vw;
}

.modal,
.modal-content,
.calendar,
.days-grid,
.day {
    max-width: 100%;
    overflow-x: hidden;
}

/* 7. Text Wrapping */
h4, h3, h2, h1 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* 8. Spacing Fixes */
.bengali-details h4 {
    margin: 10px 0 5px 0;
}

.bengali-item {
    margin-bottom: 12px;
}

.special-day-item {
    margin-bottom: 8px;
}

/* ============================= */
/* MOBILE-FIRST SPECIAL DAY LAYOUT */
/* ============================= */

/* Main container - full width column */
.special-days {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 15px;
    margin: 0 auto;
    overflow: hidden;
}

/* Section containers - stack vertically */
.special-day-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 10px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Individual cards - full width with proper sizing */
.special-day-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 15px;
    margin: 0;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Event details - ensure text wrapping */
.event-details {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    padding: 0 5px;
}

/* Event type labels */
.event-type {
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Paragraph text in cards */
.special-day-item p,
.event-details p {
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    margin: 0;
    line-height: 1.4;
}

/* ============================= */
/* MOBILE RESPONSIVE BREAKPOINTS */
/* ============================= */

@media (max-width: 480px) {
    .special-days {
        gap: 12px;
        padding: 0 5px;
    }
    
    .special-day-section {
        gap: 8px;
    }
    
    .special-day-item {
        padding: 10px 12px;
        font-size: 14px;
        line-height: 1.3;
    }
    
    .event-details {
        font-size: 13px;
        padding: 0 3px;
    }
    
    .special-day-item p {
        font-size: 13px;
        line-height: 1.3;
    }
}

@media (max-width: 360px) {
    .special-days {
        gap: 10px;
        padding: 0 3px;
    }
    
    .special-day-section {
        gap: 6px;
    }
    
    .special-day-item {
        padding: 8px 10px;
        font-size: 13px;
        line-height: 1.2;
    }
    
    .event-details {
        font-size: 12px;
        padding: 0 2px;
    }
    
    .special-day-item p {
        font-size: 12px;
        line-height: 1.2;
    }
}

@media (max-width: 320px) {
    .special-days {
        gap: 8px;
        padding: 0 2px;
    }
    
    .special-day-section {
        gap: 5px;
    }
    
    .special-day-item {
        padding: 6px 8px;
        font-size: 12px;
        line-height: 1.2;
    }
    
    .event-details {
        font-size: 11px;
        padding: 0 1px;
    }
    
    .special-day-item p {
        font-size: 11px;
        line-height: 1.2;
    }
}

/* ============================= */
/* HORIZONTAL OVERFLOW PREVENTION */
/* ============================= */

.special-days,
.special-day-section,
.special-day-item,
.event-details {
    overflow-x: hidden;
    overflow-wrap: anywhere;
}

/* Force no horizontal scroll */
body {
    overflow-x: hidden !important;
}

/* Container width enforcement */
.special-days-container,
.tab-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0 auto;
}
.ad-banner-bottom{
display:flex;
justify-content:center;
margin:8px 0;
}
.ad-native {
    position: relative;
    z-index: 1;
}

body.ads-locked .ad-banner-top,
body.ads-locked .ad-banner-bottom,
body.ads-locked .ad-native {
    display: none !important;
}

body.ads-locked ins.adsbygoogle {
    display: none !important;
}

/* অ্যাপ ওয়াপার - মূল কন্টেইনার */
.app-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* কন্টেন্ট কন্টেইনার - শেয়ারড হরাইজন্টাল স্পেসিং */
.content-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 10px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Ad Container Styles - Mobile Safe Layout */
.ad-banner-top,
.ad-banner-bottom,
.ad-native {
    width: 100%;
    max-width: 300px;
    margin: 10px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #f8f9fa;
    padding: 8px;
    max-width: 100%;
    overflow: hidden;
    z-index: 1;
}

.ad-native {
    margin: 12px auto;
    padding: 8px;
    max-width: 100%;
    overflow: hidden;
}

/* Ensure banner ads render with mobile-friendly dimensions */
.adsbygoogle {
    display: inline-block !important;
    width: 100% !important;
    max-width: 320px !important;
    height: 50px !important;
    background: transparent;
}

/* Native ad specific styling */
.ad-native {
    background: transparent;
    margin: 16px auto;
    padding: 12px;
    text-align: center;
    min-height: 120px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 300px;
}

.ad-native .adsbygoogle {
    height: auto !important;
    width: 100% !important;
    max-width: 300px !important;
    min-height: 120px !important;
    display: block !important;
    margin: 0 auto;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force native ads to be visible after login */
body.ads-initialized .ad-native {
    display: flex !important;
}

body.ads-initialized .ad-native .adsbygoogle {
    display: block !important;
    visibility: visible !important;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .ad-banner-top,
    .ad-banner-bottom,
    .ad-native {
        max-width: 250px;
        margin: 8px auto;
        padding: 6px;
    }
    
    .adsbygoogle {
        width: 100% !important;
        max-width: 250px !important;
        height: 50px !important;
    }
}

@media (max-width: 360px) {
    .ad-banner-top,
    .ad-banner-bottom,
    .ad-native {
        max-width: 234px;
        margin: 6px auto;
        padding: 4px;
    }
    
    .adsbygoogle {
        width: 100% !important;
        max-width: 234px !important;
        height: 60px !important;
    }
}

@media (max-width: 320px) {
    .ad-banner-top,
    .ad-banner-bottom,
    .ad-native {
        max-width: 200px;
        margin: 4px auto;
        padding: 4px;
    }
    
    .adsbygoogle {
        width: 100% !important;
        max-width: 200px !important;
        height: 50px !important;
    }
}

@media (min-width: 768px) {
    .adsbygoogle {
        width: 100% !important;
        max-width: 320px !important;
        height: 50px !important;
    }
}

/* শেয়ারড কার্ড সিস্টেম - ফুল উইথ, প্যারেন্ট কন্ট্রোলড স্পেসিং */
.card-base {
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px 0;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* মোবাইল রেসপন্সিভ কন্টেইনার সিস্টেম */
@media (max-width: 480px) {
    .content-container {
        padding: 0 5px;
    }
    
    .card-base {
        margin: 0 0 15px 0;
        padding: 12px;
    }
}

/* More compact padding for top features on mobile */
.top-feature.card-base {
    padding: 10px !important;
}

/* টপ ফিচার্স কন্টেইনার */
.top-features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin: 0 0 12px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
}

@media (max-width: 768px) {
    .top-features-container {
        gap: 6px;
        margin: 0 0 8px 0;
    }
}

/* Desktop feature cards layout */
@media (min-width: 1024px) {
    .top-features-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0;
        max-width: 1200px;
        margin: 0 auto;
    }
}

@media (min-width: 1200px) {
    .top-features-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Handle hidden top feature items smoothly */
.top-feature {
    transition: all 0.3s ease;
}

.top-feature[style*="display: none"] {
    margin: 0;
    padding: 0;
}

/* Hidden section class for conditional visibility */
.hidden-section {
    display: none !important;
}

.top-feature {
    min-height: 120px;
}

/* Vrata highlight */
.vrata-day {
    background: #e6f7ff;
    border: 2px solid #0077ff;
    border-radius: 6px;
}

/* Mahotsab highlight */
.mahotsab-day {
    background: #fff3cd;
    border-radius: 6px;
}

/* Ekadashi icon */
.ekadashi-day::after {
    content: "🌙";
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 14px;
}

body {
    font-family: 'Noto Sans Bengali', 'Arial', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body[data-theme="dark"] {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

/* লগইন স্ক্রিন - এনিমেটেড গ্রেডিয়েন্ট ব্যাকগ্রাউন্ড */
.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    z-index: 20000;
    padding: 20px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body[data-theme="dark"] .login-container {
    background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #1a1a2e, #16213e, #0f3460);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* লগইন কার্ড - গ্লাসমরফিজম এফেক্ট */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 35px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    width: 100%;
    max-width: 420px;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

body[data-theme="dark"] .login-card {
    background: rgba(30, 30, 50, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.login-header {
    margin-bottom: 30px;
}

.login-header i {
    font-size: 3.5em;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.login-header h2 {
    margin-top: 5px;
    font-size: 2em;
    color: #333;
    font-weight: 700;
    letter-spacing: -0.5px;
}

body[data-theme="dark"] .login-header h2 {
    color: #e0e0e0;
}

/* লগইন ইন্ট্রো সেকশন - এনহ্যান্সড */
.login-intro {
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #fff;
    max-width: 420px;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: introFadeIn 0.8s ease-out;
}

@keyframes introFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body[data-theme="dark"] .login-intro {
    color: #fff;
    background: rgba(30, 30, 50, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.login-intro h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body[data-theme="dark"] .login-intro h2 {
    color: #fff;
}

.login-intro ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: left;
}

.login-intro li {
    margin: 10px 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid #fff;
    transition: all 0.3s ease;
}

.login-intro li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

body[data-theme="dark"] .login-intro li {
    background: rgba(255, 255, 255, 0.08);
}

.login-intro p {
    margin: 15px 0 5px;
    font-size: 13px;
    opacity: 0.9;
}

/* ইনপুট ফিল্ড - মডার্ন ডিজাইন */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1.1em;
    transition: all 0.3s ease;
    z-index: 2;
}

.input-group:focus-within i {
    color: #764ba2;
    transform: translateY(-50%) scale(1.1);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    font-size: 1em;
    outline: none;
    transition: all 0.3s ease;
    background: #fafafa;
    color: #333;
}

body[data-theme="dark"] .input-group input,
body[data-theme="dark"] .input-group select {
    background: rgba(40, 40, 60, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

body[data-theme="dark"] .input-group input:focus,
body[data-theme="dark"] .input-group select:focus {
    background: rgba(50, 50, 70, 0.9);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.input-group input::placeholder {
    color: #999;
    transition: all 0.3s ease;
}

.input-group input:focus::placeholder {
    color: #bbb;
    opacity: 0.7;
}

/* লগইন বাটন - গ্রেডিয়েন্ট এফেক্ট */
.login-card button {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.login-card button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.login-card button:hover::before {
    left: 100%;
}

.login-card button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.login-card button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* PWA Install Prompt */
.install-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: none;
}

.install-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.install-btn i {
    font-size: 16px;
}

body[data-theme="dark"] .install-btn {
    background: linear-gradient(135deg, #1e7e34, #17a2b8);
}

@media (max-width: 768px) {
    .install-prompt {
        bottom: 10px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .install-btn {
        padding: 10px 16px;
        font-size: 0.8em;
    }
    
    .install-btn i {
        font-size: 14px;
    }
    
    .calendar-nav button {
        font-size: 0.75em;
        padding: 5px 7px;
    }
    
    .calendar-title {
        font-size: 1.3em;
    }
    
    .header-title h1 {
        font-size: 1.2em;
    }
    
    .panjika-info h2 {
        font-size: 1.4em;
    }
    
    .panjika-info p {
        font-size: 0.95em;
    }
    
    .day {
        font-size: 0.85em;
        padding: 4px 2px;
    }
    
    .weekday {
        font-size: 0.85em;
        padding: 4px 2px;
    }
    
    .weather-dashboard {
        padding: 20px 12px;
    }
    
    .weather-icon-wrap {
        width: 28px;
        height: 28px;
    }
    
    .weather-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .footer-links {
        gap: 10px;
        font-size: 13px;
    }
    
    .footer-links a {
        padding: 4px 8px;
    }
    
    .app-footer {
        padding: 15px 10px;
    }
    
    .sun-info {
        margin: 0 10px;
        padding: 10px 8px;
        max-width: calc(100% - 20px);
    }
}

/* PWA Update Banner */
.update-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -2px 10px rgba(0, 123, 255, 0.3);
}

.update-banner.show {
    transform: translateY(0);
}

.update-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 15px;
}

.update-content i:first-child {
    font-size: 18px;
    animation: spin 2s linear infinite;
}

.update-content span {
    flex: 1;
    font-weight: bold;
    font-size: 14px;
}

.update-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.update-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.dismiss-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .update-content {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .update-content span {
        font-size: 12px;
    }
    
    .update-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .dismiss-btn {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}

/* অ্যাপ হেডার */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

body[data-theme="dark"] .app-header {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-title {
    flex-grow: 1;
    text-align: center;
    padding: 0 15px;
}

.header-title h1 {
    font-size: 1.3em;
    margin: 0;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.menu-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1.3em;
    color: white;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.menu-toggle:active {
    transform: scale(0.95);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1.2em;
    color: white;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(15deg) scale(1.05);
}

.theme-toggle:active {
    transform: rotate(15deg) scale(0.95);
}

body[data-theme="dark"] .theme-toggle i {
    transform: rotate(180deg);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

.notification-bell {
    position: relative;
    font-size: 1.2em;
    color: white;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.notification-bell:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.notification-bell:active {
    transform: scale(0.95);
}

.notification-bell i {
    transition: transform 0.3s ease;
}

.notification-bell:hover i {
    animation: bellShake 0.5s ease-in-out;
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-8deg); }
    20%, 40%, 60%, 80% { transform: rotate(8deg); }
}

.notification-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.75em;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.4);
    border: 2px solid #007bff;
    animation: badgePulse 2s infinite;
}

body[data-theme="dark"] .notification-count {
    border-color: #1a237e;
}

.notification-count.show {
    display: flex;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* নোটিফিকেশন প্যানেল */
.notification-panel {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
}

body[data-theme="dark"] .notification-panel {
    background: #2a2a2a;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
}

body[data-theme="dark"] .notification-header {
    border-bottom: 1px solid #444;
}

.notification-header h3 {
    font-size: 1.2em;
}

.mark-all-read {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
}

body[data-theme="dark"] .mark-all-read {
    color: #66b0ff;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

body[data-theme="dark"] .notification-item {
    border-bottom: 1px solid #444;
}

.notification-item.unread {
    background: #f0f8ff;
}

body[data-theme="dark"] .notification-item.unread {
    background: #3a3a3a;
}

.notification-content p {
    margin: 0;
    font-size: 0.9em;
}

.notification-content small {
    color: #777;
    font-size: 0.8em;
}

body[data-theme="dark"] .notification-content small {
    color: #aaa;
}

/* সাইডবার */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: #f8f9fa;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
}

body[data-theme="dark"] .sidebar {
    background: #2a2a2a;
}

.sidebar.open {
    left: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.overlay.active {
    display: block;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

body[data-theme="dark"] .sidebar-header {
    border-bottom: 1px solid #444;
}

.sidebar-header h3 {
    font-size: 1.5em;
}

.close-sidebar {
    font-size: 1.5em;
    cursor: pointer;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.sidebar-item:hover {
    background: #e9ecef;
}

body[data-theme="dark"] .sidebar-item:hover {
    background: #3a3a3a;
}

.sidebar-item i {
    margin-right: 10px;
    font-size: 1.2em;
}

/* সূর্যোদয় ও সূর্যাস্ত তথ্য */
.sun-info {
    display: flex;
    justify-content: space-between;
    padding: 10px 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
}

body[data-theme="dark"] .sun-info {
    background: transparent;
    border-bottom: none;
}

.sun-info p {
    font-size: 0.9em;
    color: #333;
}

body[data-theme="dark"] .sun-info p {
    color: #e0e0e0;
}

/* ক্যালেন্ডার হেডার ইমেজ */
.calendar-header-image {
    margin: 10px 0 20px 0;
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
}

.slider-container {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
}


.slider-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.calendar-header-image img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .calendar-header-image img {
        max-height: 180px;
    }
}

.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: transparent;
}

@media (max-width: 768px) {
  .slider {
    height: auto;
  }
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  user-select: none;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 5;
  opacity: 0;
}

.slider:hover .slider-btn {
  opacity: 1;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.45);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.slider-btn svg {
  pointer-events: none;
  width: 22px;
  height: 22px;
}

.slider-btn.prev {
  left: 15px;
}

.slider-btn.next {
  right: 15px;
}

@media (max-width: 768px) {
  .slider-btn {
    display: none !important;
  }
}

.slider-dots {
  position: absolute;
  bottom: 8px !important;
  top: auto !important;
  width: 100%;
  text-align: center;
}

.slider-dots button {
  width: 6px;
  height: 6px;
  margin: 0 3px;
  padding: 0;
  min-width: 6px;
  min-height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  flex-shrink: 0;
}

.slider-dots button.active {
  background: white;
}

/* Mobile slider dots - smaller for mobile */
@media (max-width: 768px) {
  .slider-dots button {
    width: 5px;
    height: 5px;
    margin: 0 2px;
    padding: 0;
    min-width: 5px;
    min-height: 5px;
  }
}

@media (max-width: 480px) {
  .slider-dots button {
    width: 4px;
    height: 4px;
    margin: 0 2px;
    padding: 0;
    min-width: 4px;
    min-height: 4px;
  }
}

/* ক্যালেন্ডার কন্টেইনার */
.calendar-container {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
    box-sizing: border-box;
}

body[data-theme="dark"] .calendar-container {
    background: #2a2a2a;
}

/* =========================
   Enhanced Mobile Weather Dashboard
   ========================= */

/* Mobile Weather Stats Layout */
.weather-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-height: 70px;
    justify-content: center;
}

.weather-stat:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.weather-stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 4px 0;
    line-height: 1.2;
}

.weather-stat-label {
    font-size: 10px;
    opacity: 0.85;
    color: #fff;
    line-height: 1.2;
}

/* Day/Night mode support for new stat layout */
.weather-dashboard.day-mode .weather-stat-value,
.weather-dashboard.day-mode .weather-stat-label {
    color: #333;
}

.weather-dashboard.night-mode .weather-stat-value,
.weather-dashboard.night-mode .weather-stat-label {
    color: #ffffff;
}

/* Mobile Weather Dashboard Responsive */
@media (max-width: 768px) {
    .weather-dashboard {
        padding: 10px 8px;
        border-radius: 20px;
    }
    
    .weather-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .weather-stat {
        min-height: 60px;
        padding: 6px 2px;
        border-radius: 10px;
    }
    
    .weather-stat-value {
        font-size: 12px;
    }
    
    .weather-stat-label {
        font-size: 9px;
    }
    
    .weather-icon-wrap {
        width: 22px;
        height: 22px;
    }
    
    .weather-stats .weather-icon-wrap {
        width: 20px;
        height: 20px;
    }
    
    .weather-stats .weather-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .sun-times {
        gap: 8px;
        top: 6px;
        right: 6px;
    }
    
    .sun-box {
        padding: 3px 6px;
        min-width: 70px;
        gap: 3px;
        border-radius: 6px;
    }
    
    .sun-icon {
        width: 28px;
        height: 28px;
    }
    
    .sun-icon svg {
        width: 26px;
        height: 26px;
    }
    
    .sun-time {
        font-size: 14px;
    }
    
    .sun-label {
        font-size: 10px;
    }
    
    .weather-temp {
        font-size: 20px;
    }
    
    .weather-desc {
        font-size: 12px;
    }
    
    .feels-like {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .weather-dashboard {
        padding: 8px 6px;
        border-radius: 16px;
        margin-bottom: 8px;
    }
    
    .weather-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        margin-top: 6px;
    }
    
    .weather-stat {
        min-height: 50px;
        padding: 4px 2px;
        border-radius: 8px;
    }
    
    .weather-stat-value {
        font-size: 11px;
        margin: 2px 0;
    }
    
    .weather-stat-label {
        font-size: 8px;
    }
    
    .weather-icon-wrap {
        width: 18px;
        height: 18px;
    }
    
    .weather-stats .weather-icon-wrap {
        width: 16px;
        height: 16px;
    }
    
    .weather-stats .weather-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .sun-times {
        gap: 6px;
        margin-top: 4px;
    }
    
    .sun-box {
        padding: 4px 6px;
        min-width: 60px;
        border-radius: 8px;
    }
    
    .sun-icon {
        width: 24px;
        height: 24px;
    }
    
    .sun-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .sun-time {
        font-size: 12px;
    }
    
    .sun-label {
        font-size: 9px;
    }
    
    .temperature-row {
        gap: 6px;
    }
    
    .weather-temp {
        font-size: 18px;
    }
    
    .weather-desc {
        font-size: 11px;
    }
    
    .feels-like {
        font-size: 9px;
    }
}

/* Mobile Weather Accordion Arrow */
.weather-arrow {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.weather-arrow svg {
    width: 20px;
    height: 20px;
    fill: rgba(255, 255, 255, 0.8);
}

.weather-arrow.expanded {
    transform: translateX(-50%) rotate(180deg);
}

.weather-dashboard.collapsed .weather-stats {
    display: none;
}

@media (max-width: 480px) {
    .weather-arrow {
        display: flex !important;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 20px;
    }
    
    .weather-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* ক্যালেন্ডার নেভিগেশন বোতাম - Enhanced */
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

body[data-theme="dark"] .calendar-nav {
    background: rgba(42, 42, 42, 0.5);
}

.nav-group {
    display: flex;
    gap: 8px;
}

.nav-group-left {
    justify-content: flex-start;
}

.nav-group-right {
    justify-content: flex-end;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    min-height: 40px;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.nav-btn:active {
    transform: translateY(0);
}

.nav-btn i {
    font-size: 1.1em;
}

.nav-btn-year {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.nav-btn-month {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

.nav-btn-month:hover {
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

body[data-theme="dark"] .nav-btn {
    opacity: 0.95;
}

body[data-theme="dark"] .nav-btn:hover {
    opacity: 1;
}

.calendar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body[data-theme="dark"] .calendar-title {
    color: #e0e0e0;
    background: rgba(42, 42, 42, 0.8);
}

.title-icon {
    color: #667eea;
    font-size: 1.1em;
}

body[data-theme="dark"] .title-icon {
    color: #a29bfe;
}

.calendar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.calendar-filter-btn {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  cursor: pointer;
  font-size: 0.9em;
}

.calendar-filter-btn.active {
  background: #007bff;
  border-color: #007bff;
  color: #fff;
}

body[data-theme="dark"] .calendar-filter-btn {
  background: #2a2a2a;
  color: #e0e0e0;
  border-color: #444;
}

body[data-theme="dark"] .calendar-filter-btn.active {
  background: #66b0ff;
  border-color: #66b0ff;
  color: #1a1a1a;
}

/* Responsive calendar navigation */
@media (max-width: 768px) {
    .calendar-nav {
        padding: 8px;
    }
    
    .nav-btn {
        padding: 8px 12px;
        font-size: 0.85em;
        min-height: 36px;
    }
    
    .nav-btn .nav-text {
        display: none;
    }
    
    .nav-btn i {
        font-size: 1.2em;
    }
    
    .calendar-title {
        font-size: 1em;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .calendar-nav {
        padding: 6px;
        gap: 4px;
    }
    
    .nav-group {
        gap: 4px;
    }
    
    .nav-btn {
        padding: 6px 10px;
        min-height: 32px;
        border-radius: 8px;
    }
    
    .nav-btn i {
        font-size: 1.1em;
    }
    
    .calendar-title {
        font-size: 0.9em;
        padding: 5px 10px;
        border-radius: 8px;
    }
}

/* সপ্তাহের দিন */
.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.weekday {
    font-weight: bold;
    padding: 5px;
    color: #333;
}

body[data-theme="dark"] .weekday {
    color: #e0e0e0;
}

/* দিনের গ্রিড */
.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.day.empty {
    background: transparent;
}

.day:hover {
    background-color: #e9ecef;
}

body[data-theme="dark"] .day:hover {
    background-color: #3a3a3a;
}

.day.current-day {
    background-color: #007bff;
    color: white;
}

.day-content {
    position: relative;
}

.gregorian-number {
    font-size: 1.2em;
    color: inherit;
}

.bengali-date {
    font-size: 0.75em;
    color: inherit;
    opacity: 0.8;
    margin-top: 2px;
    font-weight: 500;
}

/* Dark mode specific fixes for calendar visibility */
body[data-theme="dark"] .gregorian-number {
    color: #ffffff !important;
}

body[data-theme="dark"] .bengali-date {
    color: #ffffff !important;
}

body[data-theme="dark"] .day-content {
    color: #ffffff !important;
}

body[data-theme="dark"] .day {
    background-color: #2a2a2a !important;
    border: 1px solid #404040 !important;
}

body[data-theme="dark"] .day.current-day {
    background-color: #0056b3 !important;
    color: #ffffff !important;
}

body[data-theme="dark"] .day.current-day .gregorian-number {
    color: #ffffff !important;
}

/* মডাল - Beautiful Glassmorphism Design */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
    justify-content: center;
}

.modal[style*="display: block"],
.modal.show {
    opacity: 1;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    box-sizing: border-box;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.modal.show .modal-content,
.modal[style*="display: block"] .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Modal responsive improvements */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        max-width: 98%;
        border-radius: 16px;
    }
}

/* Modal Header with Gradient */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px 24px 0 0;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: headerShine 4s ease-in-out infinite;
}

@keyframes headerShine {
    0%, 100% { transform: translateX(-30%) translateY(-30%); }
    50% { transform: translateX(30%) translateY(30%); }
}

.date-navigation {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1;
    flex: 1;
}

.date-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.3em;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.date-nav-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.date-title {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
    text-align: center;
    flex: 1;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1;
    margin-left: 16px;
}

.share-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.2em;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1) rotate(15deg);
}

.share-btn:active {
    transform: scale(0.95);
}

.close {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.8em;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    backdrop-filter: blur(10px);
}

.close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg) scale(1.1);
}

.close:active {
    transform: scale(0.95);
}

/* ট্যাব বাটন - Beautiful Design */
.tab-buttons {
    display: flex;
    padding: 0 24px;
    gap: 8px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 10;
}

.tab-button {
    flex: 1;
    padding: 16px 12px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
}

.tab-button:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.tab-button.active {
    color: #667eea;
}

.tab-button.active::after {
    width: 100%;
}

.tab-content {
    display: none;
    padding: 24px;
    animation: fadeInUp 0.4s ease;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* বাংলা বিস্তারিত - Beautiful Cards */
.bengali-details {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.bengali-details::-webkit-scrollbar {
    width: 6px;
}

.bengali-details::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.bengali-details::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 3px;
}

.bengali-details h4 {
    font-size: 1.15em;
    margin: 20px 0 12px;
    color: #495057;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.bengali-details h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 2px;
}

.bengali-details h4:first-child {
    margin-top: 0;
}

.bengali-item {
    padding: 14px 18px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    margin-bottom: 10px;
    color: #212529;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    font-weight: 500;
}

.bengali-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-color: #dee2e6;
}

/* বিশেষ দিন সেকশন - Beautiful Event Cards */
.event-details {
    padding: 0;
}

.memorable-day-item {
    padding: 18px 22px;
    background: linear-gradient(145deg, #fff9e6 0%, #fff3cd 100%);
    border-radius: 16px;
    margin-bottom: 12px;
    color: #856404;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.memorable-day-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.25);
}

.memorable-day-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ffc107, #ff9800);
}

.memorable-day-item p {
    font-weight: 600;
    margin: 0;
    padding-left: 12px;
}
.memorable-day-item p {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Event type variations */
.memorable-day-item.ekadashi {
    background: linear-gradient(145deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.15);
}

.memorable-day-item.ekadashi::before {
    background: linear-gradient(180deg, #f44336, #c62828);
}

.memorable-day-item.paran {
    background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.15);
}

.memorable-day-item.paran::before {
    background: linear-gradient(180deg, #4caf50, #2e7d32);
}

.memorable-day-item.festival {
    background: linear-gradient(145deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.15);
}

.memorable-day-item.festival::before {
    background: linear-gradient(180deg, #2196f3, #1565c0);
}

/* টুডু সেকশন - Modern Design */
.todo-container {
    padding: 0;
}

.todo-input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.input-with-icon {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1em;
    z-index: 1;
}

.input-with-icon input,
.input-with-icon select {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 0.95em;
    outline: none;
    color: #495057;
    background: #fff;
    transition: all 0.3s ease;
}

.input-with-icon input:focus,
.input-with-icon select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.todo-input-group button {
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.todo-input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.todo-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.todo-filters button {
    flex: 1;
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
    font-weight: 500;
}

.todo-filters button:hover {
    background: #e9ecef;
    color: #495057;
}

.todo-filters button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#todoItems {
    list-style: none;
    padding: 0;
    margin: 0;
}

.todo-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    margin-bottom: 10px;
    gap: 12px;
    color: #333;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.todo-item:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.todo-item.completed {
    background: linear-gradient(145deg, #e8e8e8 0%, #f0f0f0 100%);
    text-decoration: line-through;
    opacity: 0.7;
}

.todo-item input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #667eea;
}

.reminder-time {
    font-size: 0.85em;
    color: #6c757d;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.reminder-time i {
    color: #667eea;
}

.todo-actions {
    display: flex;
    gap: 8px;
}

.todo-actions button {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.todo-actions button:first-child {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.todo-actions button:first-child:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

.todo-actions button:last-child {
    color: #ff4d4f;
    background: rgba(255, 77, 79, 0.1);
}

.todo-actions button:last-child:hover {
    background: rgba(255, 77, 79, 0.2);
    transform: scale(1.1);
}

/* Dark Mode Styles */
body[data-theme="dark"] .modal-content {
    background: linear-gradient(145deg, #2d2d3a 0%, #252532 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

body[data-theme="dark"] .tab-buttons {
    background: linear-gradient(180deg, #2d2d3a 0%, #252532 100%);
    border-bottom-color: #3a3a4a;
}

body[data-theme="dark"] .tab-button {
    color: #a0a0b0;
}

body[data-theme="dark"] .tab-button:hover {
    color: #8b9dc3;
    background: rgba(102, 126, 234, 0.1);
}

body[data-theme="dark"] .tab-button.active {
    color: #8b9dc3;
}

body[data-theme="dark"] .bengali-details h4 {
    color: #e0e0e0;
    border-bottom-color: #3a3a4a;
}

body[data-theme="dark"] .bengali-item {
    background: linear-gradient(145deg, #2d2d3a 0%, #363646 100%);
    color: #e0e0e0;
    border-color: #3a3a4a;
}

body[data-theme="dark"] .input-with-icon input,
body[data-theme="dark"] .input-with-icon select {
    background: #2d2d3a;
    border-color: #3a3a4a;
    color: #e0e0e0;
}

body[data-theme="dark"] .input-with-icon input:focus,
body[data-theme="dark"] .input-with-icon select:focus {
    border-color: #667eea;
}

body[data-theme="dark"] .todo-filters button {
    background: #2d2d3a;
    color: #a0a0b0;
}

body[data-theme="dark"] .todo-filters button:hover {
    background: #3a3a4a;
}

body[data-theme="dark"] .todo-item {
    background: linear-gradient(145deg, #2d2d3a 0%, #363646 100%);
    color: #e0e0e0;
    border-color: #3a3a4a;
}

body[data-theme="dark"] .todo-item.completed {
    background: linear-gradient(145deg, #1a1a2e 0%, #252532 100%);
}

body[data-theme="dark"] .memorable-day-item {
    background: linear-gradient(145deg, #3d3828 0%, #4a4428 100%);
    color: #ffd54f;
}

body[data-theme="dark"] .reminder-time {
    color: #a0a0b0;
}

body[data-theme="dark"] .bengali-details::-webkit-scrollbar-track {
    background: #2d2d3a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 20px;
    }
    
    .modal-header {
        padding: 18px 16px 14px;
        border-radius: 20px 20px 0 0;
    }
    
    .date-title {
        font-size: 1.15em;
    }
    
    .date-nav-btn,
    .share-btn,
    .close {
        width: 40px;
        height: 40px;
    }
    
    .tab-buttons {
        padding: 0 12px;
    }
    
    .tab-button {
        padding: 14px 8px;
        font-size: 0.9em;
    }
    
    .tab-content {
        padding: 16px;
    }
    
    .bengali-details {
        max-height: 350px;
    }
    
    .bengali-item,
    .memorable-day-item {
        padding: 12px 14px;
    }
    
    .todo-input-group {
        flex-direction: column;
    }
    
    .input-with-icon {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        border-radius: 16px;
    }
    
    .modal-header {
        border-radius: 16px 16px 0 0;
        padding: 16px 12px 12px;
    }
    
    .date-title {
        font-size: 1em;
    }
    
    .date-nav-btn,
    .share-btn,
    .close {
        width: 36px;
        height: 36px;
    }
    
    .tab-content {
        padding: 12px;
    }
}

/* প্রোফাইল মডাল */
.profile-modal {
    max-width: 400px;
}

.profile-form {
    text-align: center;
}

.profile-avatar {
    font-size: 4em;
    color: #007bff;
    margin-bottom: 20px;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.profile-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.profile-actions button:first-child {
    background: #007bff;
    color: white;
}

.profile-actions button:first-child:hover {
    background: #0056b3;
}

.profile-actions .logout-btn {
    background: #ff4d4f;
    color: white;
}

.profile-actions .logout-btn:hover {
    background: #d9363e;
}

/* রিলেটিভ অপশন */
.relative-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.relative-options button {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.relative-options button:hover {
    background: #0056b3;
}

/* রিলেটিভ তালিকা */
.relatives-list .relative-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #e9ecef;
    border-radius: 5px;
    margin-bottom: 10px;
    gap: 10px;
}

body[data-theme="dark"] .relatives-list .relative-item {
    background: #3a3a3a;
}

.relatives-list .relative-item span {
    flex: 1;
    min-width: 100px;
}
/* সূর্যোদয় ও সূর্যাস্ত তথ্য */
.top-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 20px 0;
}

.top-section .calendar-header-image {
    margin: 0;
}

.sun-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0;
    background: transparent;
    border-bottom: none;
    gap: 0;
}

body[data-theme="dark"] .sun-info {
    background: #2a2a2a;
    border-bottom: 1px solid #444;
}

.sun-weather {
    flex: 1;
    min-width: 200px;
}

.weather-info {
    flex: 1;
    min-width: 200px;
}

.weather-dashboard {
    background: linear-gradient(135deg,#1e3c72,#2a5298);
    padding: 12px 10px;
    border-radius: 25px;
    margin-bottom: 10px;
    color: #fff;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: background 0.5s ease, color 0.5s ease, text-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
}

/* Weather Overlay */
.weather-dashboard .weather-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    transition: background 0.5s ease;
}

/* Ensure content is above overlay */
.weather-dashboard > *:not(.weather-overlay) {
    position: relative;
    z-index: 2;
}

/* Legacy Day/Night mode support (deprecated but kept for compatibility) */
.weather-dashboard.day-mode {
    color: #333;
}

.weather-dashboard.night-mode {
    color: #ffffff;
}

/* Compact Weather Header */
.weather-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    position: relative;
    padding-right: 160px; /* Space for sun-times on mobile */
}

@media (min-width: 769px) {
    .weather-header {
        padding-right: 0;
    }
}

.sun-times {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 12px;
    margin-top: 0;
    z-index: 5;
}

.sun-box {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    min-width: 80px;
}

.temperature-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: calc(100% - 160px); /* Prevent overlap with sun-times */
}

@media (min-width: 769px) {
    .temperature-row {
        max-width: 100%;
    }
}

.weather-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.weather-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    stroke: #ffffff;
    fill: none;
    opacity: 0.9;
    transition: stroke 0.3s ease;
}

/* Day/Night Icon Color Support */
.weather-dashboard.day-mode .weather-icon svg {
    stroke: #333;
}

.weather-dashboard.night-mode .weather-icon svg {
    stroke: #ffffff;
}

/* Icon Animations */
.weather-icon.sun {
    animation: rotateSun 10s linear infinite;
}

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

.weather-icon.wind {
    animation: windFlow 3s ease-in-out infinite;
}

@keyframes windFlow {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(2px); }
}

.weather-icon.cloud {
    animation: cloudFloat 4s ease-in-out infinite;
}

@keyframes cloudFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-1px); }
}

.weather-icon.humidity {
    animation: dropPulse 2s ease-in-out infinite;
}

@keyframes dropPulse {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
    .weather-icon.sun,
    .weather-icon.wind,
    .weather-icon.cloud,
    .weather-icon.humidity {
        animation: none;
    }
}

.weather-temp {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

.weather-desc {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.feels-like {
    font-size: 14px;
    opacity: 0.85;
    margin: 0;
}

.sun-times {
    display: flex;
    gap: 16px;
    margin-top: 2px;
}

.sun-box {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sun-label {
    font-size: 10px;
    opacity: 0.8;
    line-height: 1;
}

.sun-icon {
    font-size: 16px;
}

.sun-time {
    font-size: 12px;
    font-weight: 600;
}

.weather-stats .weather-icon-wrap {
  width:26px; height:26px;
  background: rgba(255,255,255,0.14);
  border-radius: 50%;
  margin: 0;
  flex-shrink: 0;
}

.weather-stats .weather-icon svg {
  width:20px; height:20px;
}

.weather-right {
    display: flex;
    gap: 20px;
}

.sun-box {
background: rgba(255,255,255,0.08);
padding: 8px;
border-radius: 12px;
text-align: center;
backdrop-filter: blur(10px);
min-width: 80px;
border: none;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 8px;
}

.sun-icon {
width: 38px;
height: 38px;
display: flex;
align-items: center;
justify-content: center;
margin: 0;
flex-shrink: 0;
}

.sun-icon svg {
width: 36px;
height: 36px;
}

.sun-time {
font-size: 20px;
font-weight: bold;
}

.sun-label {
font-size: 12px;
opacity: 0.9;
margin-top: 4px;
}

.weather-stats {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 8px;
width: 100%;
max-width: 100%;
box-sizing: border-box;
margin-top: 8px;
}

.countdown-header {
font-size: 1.1em;
font-weight: bold;
margin-bottom: 4px;
text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.countdown-content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
}

.countdown-main-row {
display: flex;
align-items: baseline;
justify-content: center;
gap: 6px;
flex-wrap: wrap;
}

.countdown-days {
font-size: 2.2em;
font-weight: bold;
color: #fff;
text-shadow: 0 3px 6px rgba(0,0,0,0.4);
line-height: 1;
}

.countdown-text {
font-size: 0.9em;
opacity: 0.9;
}

.countdown-vrata-type {
font-size: 1.1em;
font-weight: bold;
color: #ffeb3b;
}

.countdown-vrata-name {
font-size: 1.2em;
font-weight: bold;
color: #fff;
margin: 2px 0;
}

.countdown-date {
font-size: 0.8em;
opacity: 0.85;
margin-top: 2px;
}

@keyframes floatSoft{
0%{ transform: translateY(0px); }
50%{ transform: translateY(-3px); }
100%{ transform: translateY(0px); }
  50%{ transform: translateY(-3px); }
  100%{ transform: translateY(0px); }
}

.weather-card {
    background: rgba(255,255,255,0.08);
    padding: 6px 4px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    min-width: 0;
    width: 100%;
    height: auto;
    overflow: hidden;
    box-sizing: border-box;
}

.weather-card::-webkit-scrollbar {
    display: none;
}

/* wind-dir-wrap removed - was: display:flex; align-items:center; justify-content:center; */
/* gap:8px; */
/* .wind-arrow removed - was: width:18px; height:18px; */
.weather-card span {
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.weather-card p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.weather-card h3 {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

@media (prefers-reduced-motion: reduce){
  .weather-stats .weather-card{ animation: none !important; }
  .weather-dashboard{ transition: none !important; }
}

@media (max-width: 768px) {

    .top-section {
        margin: 8px;
        gap: 10px;
    }

    .weather-dashboard {
        padding: 12px;
        border-radius: 14px;
        position: relative;
        overflow: hidden;
        max-height: none;
    }

    /* ===== ACCORDION MOBILE WEATHER ===== */
    .weather-hero {
        display: flex;
        flex-direction: row;           /* KEEP SAME ROW */
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .weather-hero:hover {
        background: rgba(255,255,255,0.05);
        border-radius: 8px;
        padding: 4px;
    }

    .weather-left {
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 1;
        min-width: 0;
    }

    .weather-temp {
        font-size: 32px;
        font-weight: 700;
        line-height: 1;
    }

    .weather-desc {
        font-size: 14px;
        margin-top: 2px;
    }

    .weather-feels {
        font-size: 12px;
        margin-top: 1px;
        opacity: 0.8;
    }

    /* ===== SUN SECTION RIGHT SIDE ===== */
    .weather-right {
        display: flex;
        flex-direction: row;         /* SAME ROW */
        gap: 6px;
        align-items: center;
    }

    .sun-box {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        padding: 4px 6px;
        border-radius: 8px;
        background: rgba(255,255,255,0.12);
        min-width: auto;
    }

    .sun-icon {
        width: 22px;
        height: 22px;
    }

    .sun-icon svg {
        width: 20px;
        height: 20px;
    }

    .sun-time {
        font-size: 14px;
        font-weight: 600;
    }

    .sun-label {
        font-size: 12px;
        opacity: 0.9;
    }

    /* ===== ACCORDION ARROW ===== */
    .weather-arrow {
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
    }

    .weather-arrow svg {
        width: 20px;
        height: 20px;
        fill: white;
    }

    .weather-dashboard.expanded .weather-arrow {
        transform: translateX(-50%) rotate(180deg);
    }

    /* ===== SIMPLE CLICK HINT ===== */
    .weather-dashboard::after {
        content: '▼ আরও দেখুন';
        position: absolute;
        bottom: -18px;
        right: 12px;
        font-size: 11px;
        color: rgba(255,255,255,0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .weather-dashboard:hover::after {
        opacity: 1;
    }

    .weather-dashboard.expanded::after {
        content: '▲ সংক্ষিপ্ত করুন';
    }

    /* ===== COLLAPSIBLE WEATHER STATS ===== */
    .weather-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 10px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .weather-dashboard.expanded .weather-stats {
        max-height: 200px;
        opacity: 1;
        margin-top: 12px;
    }

    .weather-card {
        padding: 8px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        gap: 6px;
        background: rgba(255,255,255,0.08);
        transition: all 0.3s ease;
    }

    .weather-card:hover {
        background: rgba(255,255,255,0.12);
        transform: translateY(-2px);
    }

    .weather-card h3 {
        font-size: 14px;
        color: #fff !important;
    }

    .weather-card p {
        font-size: 12px;
        color: #fff !important;
        opacity: 0.9;
    }

    .weather-icon-wrap {
        width: 26px;
        height: 26px;
    }

    .weather-icon svg {
        width: 22px;
        height: 22px;
    }

    /* ===== ACCORDION INDICATOR ===== */
    .weather-dashboard::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 3px;
        background: rgba(255,255,255,0.3);
        border-radius: 2px;
        transition: width 0.3s ease;
    }

    .weather-dashboard.expanded::before {
        width: 50px;
        background: rgba(255,255,255,0.5);
    }
    
    /* ===== MOBILE CALENDAR COMPACT GRID ===== */
    .calendar-container {
        margin: 8px 0;
        border-radius: 12px;
        padding: 10px;
    }
    
    .calendar-nav {
        margin-bottom: 8px;
        gap: 4px;
    }
    
    .calendar-nav button {
        font-size: 0.75em;
        padding: 6px 8px;
        min-height: 36px;
        border-radius: 6px;
    }
    
    .calendar-title {
        font-size: 1em;
    }
    
    .weekdays {
        margin-bottom: 6px;
    }
    
    .weekday {
        font-size: 0.7em;
        padding: 4px 2px;
        font-weight: 600;
    }
    
    .days-grid {
        gap: 3px;
    }
    
    .day {
        padding: 6px 2px;
        font-size: 0.8em;
        min-height: 44px;
        border-radius: 6px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    /* Mobile-optimized special day badges */
    .day.ekadashi-day::after,
    .day.mahadvadashi-day::after,
    .day.maha-dvadashi-day::after {
        font-size: 8px;
        padding: 1px 4px;
        top: 2px;
        right: 2px;
    }
    
    /* Smaller fonts for mobile to fit more content */
    .weather-temp {
        font-size: 28px;
    }
    
    .weather-desc {
        font-size: 12px;
    }
    
    .temperature-row {
        gap: 6px;
    }
    
    .feels-like {
        font-size: 11px;
    }
    
    .sun-times {
        gap: 8px;
    }
    
    .sun-box {
        padding: 4px 8px;
    }
    
    .sun-label {
        font-size: 10px;
    }
    
    .sun-time {
        font-size: 12px;
    }
}

/* desktop override: place weather bar full width above slider */


/* desktop override: compact weather layout */




.sun-info p {
    font-size: 0.9em;
    color: #333;
    margin: 5px 0;
}

body[data-theme="dark"] .sun-info p {
    color: #e0e0e0;
}

.weather-info span {
    font-weight: bold;
}
.paran-day {
    border: 2px solid #2196f3;
}
/* =========================
   Vrata Highlights (Region)
   ========================= */

/* Base: keep day cell ready for badge */
.day {
    position: relative;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #333;
    transform: scale(1);
}

.day:active {
    transform: scale(0.95);
    background-color: #e3f2fd;
}

@media (max-width: 768px) {
    .day:active {
        transform: scale(0.92);
    }
}

body[data-theme="dark"] .day {
    color: #e0e0e0;
}

/* Ekadashi (লাল) */
.day.ekadashi-day {
  background: rgba(220, 38, 38, 0.12) !important;
  border: 2px solid rgba(220, 38, 38, 0.75) !important;
}
.day.ekadashi-day::after {
  content: "একাদশী";
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(220, 38, 38, 0.45);
}

/* Mahadvadashi (সবুজ) */
.day.mahadvadashi-day,
.day.maha-dvadashi-day {
  background: rgba(22, 163, 74, 0.12) !important;
  border: 2px solid rgba(22, 163, 74, 0.75) !important;
}
.day.mahadvadashi-day::after,
.day.maha-dvadashi-day::after {
  content: "মহা দ্বাদশী";
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.18);
  border: 1px solid rgba(22, 163, 74, 0.45);
}

/* Paran (বেগুনি) */
.day.paran-day {
  background: rgba(124, 58, 237, 0.12) !important;
  border: 2px solid rgba(124, 58, 237, 0.75) !important;
}
.day.paran-day::after {
  content: "পারন";
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(124, 58, 237, 0.45);
}

/* Shivratri (নীল) */
.day.shivratri-day {
  background: rgba(37, 99, 235, 0.12) !important;
  border: 2px solid rgba(37, 99, 235, 0.75) !important;
}
.day.shivratri-day::after {
  content: "শিবচতুর্দশী";
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.45);
}

/* Dark mode friendly */
body[data-theme="dark"] .day.ekadashi-day,
body[data-theme="dark"] .day.mahadvadashi-day,
body[data-theme="dark"] .day.maha-dvadashi-day,
body[data-theme="dark"] .day.paran-day,
body[data-theme="dark"] .day.shivratri-day {
  filter: brightness(1.05);
}

.vrata-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
}

/* New class system (requested)
   Ekadashi: red
   Maha Dvadashi: purple
   Paran: green
   Other: orange
*/
.day.vrata-ekadashi {
  background: rgba(220, 38, 38, 0.12) !important;
  border: 2px solid rgba(220, 38, 38, 0.75) !important;
}
.day.vrata-ekadashi .vrata-badge {
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(220, 38, 38, 0.45);
}

.day.vrata-maha-dvadashi {
  background: rgba(124, 58, 237, 0.12) !important;
  border: 2px solid rgba(124, 58, 237, 0.75) !important;
}
.day.vrata-maha-dvadashi .vrata-badge {
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(124, 58, 237, 0.45);
}

.day.vrata-paran {
  background: rgba(22, 163, 74, 0.12) !important;
  border: 2px solid rgba(22, 163, 74, 0.75) !important;
}
.day.vrata-paran .vrata-badge {
  background: rgba(22, 163, 74, 0.18);
  border: 1px solid rgba(22, 163, 74, 0.45);
}

.day.vrata-other {
  background: rgba(249, 115, 22, 0.12) !important;
  border: 2px solid rgba(249, 115, 22, 0.75) !important;
}
.day.vrata-other .vrata-badge {
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.45);
}

body[data-theme="dark"] .day.vrata-ekadashi,
body[data-theme="dark"] .day.vrata-maha-dvadashi,
body[data-theme="dark"] .day.vrata-paran,
body[data-theme="dark"] .day.vrata-other {
  filter: brightness(1.05);
}

/* Highlight Engine Classes - Simplified */
.hl-vrata { 
  background: rgba(22, 163, 74, 0.15) !important; 
  border: 2px solid rgba(22, 163, 74, 0.8) !important; 
  color: #16a34a !important;
}
.hl-paran { 
  background: rgba(147, 51, 234, 0.15) !important; 
  border: 2px solid rgba(147, 51, 234, 0.8) !important; 
  color: #9333ea !important;
}

/* Dark mode for highlight classes */
body[data-theme="dark"] .hl-vrata,
body[data-theme="dark"] .hl-paran {
  filter: brightness(1.15);
}

/* Mobile responsive highlight classes */
@media (max-width: 480px) {
  .hl-vrata, .hl-paran {
    border-width: 1px !important;
  }
}
.day-badges {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.day-badge {
  font-size: 10px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
}

/* Mobile: Remove box styling completely, show larger clean text */
@media (max-width: 768px) {
  .day-badges {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-top: 3px;
    width: 100%;
  }
  
  .day-badge {
    font-size: 13px;
    padding: 0;
    border: none;
    background: none;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
  }
  
  /* Color coding for different types */
  .day-badge.badge-ekadashi { color: #dc2626; }
  .day-badge.badge-paran { color: #7c3aed; }
  .day-badge.badge-shivratri { color: #2563eb; }
  .day-badge.badge-mahadvadashi { color: #16a34a; }
  .day-badge.badge-janmashtami { color: #ec4899; }
  .day-badge.badge-ram-navami { color: #f97316; }
  .day-badge.badge-grahan { color: #dc2626; }
  .day-badge.badge-gour-purnima { color: #ec4899; }
}

@media (max-width: 480px) {
  .day-badge {
    font-size: 12px;
    line-height: 1.2;
  }
}

.day-badge.badge-ekadashi {
  background: rgba(0, 123, 255, 0.14);
  border-color: rgba(0, 123, 255, 0.35);
}

.day-badge.badge-paran {
  background: rgba(40, 167, 69, 0.14);
  border-color: rgba(40, 167, 69, 0.35);
}

.day-badge.badge-shivratri {
  background: rgba(106, 90, 205, 0.14);
  border-color: rgba(106, 90, 205, 0.35);
}

.day-badge.badge-mahadvadashi {
  background: rgba(22, 163, 74, 0.14);
  border-color: rgba(22, 163, 74, 0.35);
}

.day-badge.badge-janmashtami {
  background: rgba(236, 72, 153, 0.14);
  border-color: rgba(236, 72, 153, 0.35);
}

.day-badge.badge-ram-navami {
  background: rgba(249, 115, 22, 0.14);
  border-color: rgba(249, 115, 22, 0.35);
}

.day-badge.badge-grahan {
  background: rgba(220, 38, 38, 0.14);
  border-color: rgba(220, 38, 38, 0.35);
}

.day-badge.badge-gour-purnima {
  background: rgba(236, 72, 153, 0.14);
  border-color: rgba(236, 72, 153, 0.35);
}

.day-badge.badge-shivratri {
  background: rgba(111, 66, 193, 0.14);
  border-color: rgba(111, 66, 193, 0.35);
}

.day-badge.badge-mahotsab {
  background: rgba(255, 193, 7, 0.18);
  border-color: rgba(255, 193, 7, 0.35);
}

.day-badge.badge-grahan {
  background: rgba(220, 53, 69, 0.14);
  border-color: rgba(220, 53, 69, 0.35);
}



body[data-theme="dark"] .day-badge {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
}

body[data-theme="dark"] .day-badge.badge-ekadashi {
  background: rgba(0, 123, 255, 0.3);
  border-color: rgba(0, 123, 255, 0.5);
  color: #ffffff;
}

body[data-theme="dark"] .day-badge.badge-paran {
  background: rgba(40, 167, 69, 0.3);
  border-color: rgba(40, 167, 69, 0.5);
  color: #ffffff;
}

body[data-theme="dark"] .day-badge.badge-shivratri {
  background: rgba(111, 66, 193, 0.3);
  border-color: rgba(111, 66, 193, 0.5);
  color: #ffffff;
}

body[data-theme="dark"] .day-badge.badge-mahotsab {
  background: rgba(255, 193, 7, 0.3);
  border-color: rgba(255, 193, 7, 0.5);
  color: #000000;
}

body[data-theme="dark"] .day-badge.badge-grahan {
  background: rgba(220, 53, 69, 0.3);
  border-color: rgba(220, 53, 69, 0.5);
  color: #ffffff;
}

/* Keep UI clean: disable older big label badges */
.day.ekadashi-day::after,
.day.paran-day::after,
.day.shivratri-day::after,
.day.mahadvadashi-day::after,
.day.maha-dvadashi-day::after {
  display: none;
  content: "";
}
/* ===== DESKTOP LAYOUT SYSTEM ===== */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

.max-width-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Desktop typography improvements */
@media (min-width: 1024px) {
    body {
        font-size: 17px;
    }
}

@media (min-width: 1400px) {
    body {
        font-size: 18px;
    }
}

/* Desktop calendar width */
@media (min-width: 1024px) {
    .calendar-container {
        max-width: 900px;
        margin: 0 auto;
    }
}

/* Desktop weather layout */
@media (min-width: 1024px) {
    .weather-dashboard {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 20px;
        border-radius: 16px;
    }
    
    .weather-header {
        grid-column: span 2;
        display: flex;
        align-items: center;
        gap: 20px;
        justify-content: space-between;
    }
    
    .weather-stats {
        grid-column: span 2;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }
}

/* Desktop ads layout */
@media (min-width: 1024px) {
    .ad-banner-top,
    .ad-banner-bottom {
        max-width: 900px;
        margin: 20px auto;
        display: flex;
        justify-content: center;
    }
    
    .ad-banner-top {
        margin-top: 0;
    }
}

/* ===== DESKTOP PREMIUM WEATHER LAYOUT FORCE FIX ===== */
@media screen and (min-width: 1024px) {

  .top-section {
    max-width: 1400px;
    margin: 30px auto;
  }

  .weather-dashboard {
    padding: 45px 60px;
    border-radius: 30px;
  }

  .weather-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 50px;
  }

  .weather-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .weather-temp {
    font-size: 80px;
    font-weight: 700;
  }

  .weather-desc {
    font-size: 22px;
  }

  .weather-feels {
    font-size: 18px;
    opacity: 0.9;
  }

  .weather-right {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
  }

  .sun-box {
    min-width: 150px;
  }

  .weather-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    margin-top: 40px;
  }

  .weather-card {
    padding: 22px;
    border-radius: 18px;
  }
}

/* ===== CLEAN DESKTOP WEATHER BAR (SINGLE SOURCE OF TRUTH) ===== */
@media (min-width: 1024px) {

  /* Main container constraints */
  .content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
  }

  /* keep slider + calendar full width (no left/right gaps) */
  .top-section { 
    margin: 20px 0; 
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
  .calendar-container { 
    margin: 0 0 20px; 
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  /* weather bar with grid layout */
  .sun-info { width: 100%; }

  .weather-dashboard{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 18px 22px;
    border-radius: 22px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .weather-hero{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
  }

  .weather-left{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .weather-icon-wrap{ width: 54px; height: 54px; }
  .weather-icon{ width: 54px; height: 54px; }

  .weather-temp{ font-size: 54px; line-height: 1; font-weight: 800; }
  .weather-desc{ font-size: 16px; opacity: .95; }
  .weather-feels{ font-size: 14px; opacity: .9; }

  .weather-right{
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 6px;
  }

  .sun-box{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 14px;
    min-width: 120px;
  }
  .sun-box .sun-icon{ font-size: 18px; line-height: 1; }
  .sun-box .sun-time{ font-size: 16px; font-weight: 700; }
  .sun-box .sun-label{ font-size: 12px; opacity: .9; }

  /* stats in one row on desktop (no blank space) */
  .weather-stats{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
    flex: 1 1 auto;
    flex-wrap: nowrap;
  }

  .weather-card{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    min-width: 110px;
    justify-content: center;
    text-align: left;
  }
  .weather-card span{ font-size: 16px; }
  .weather-card p{ margin: 0; font-size: 12px; opacity: .9; color: #fff; }
  .weather-card h3{ margin: 0; font-size: 14px; font-weight: 800; color: #fff; }

  .wind-dir-wrap{ display: flex; align-items: center; gap: 6px; }
}

/* বিশেষ দিনের সেকশন - Simplified */
.special-days-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 25px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.special-days-section h3 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.special-days-section h3 i {
    color: #ffd700;
    font-size: 32px;
}

body[data-theme="dark"] .special-days-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body[data-theme="dark"] .special-days-section h3 {
    color: #fff;
}

.today-section, .tomorrow-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.today-section h4, .tomorrow-section h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.today-section h4 span, .tomorrow-section h4 span {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
}

.today-section > div, .tomorrow-section > div {
    color: #fff;
    font-size: 15px;
    line-height: 1.6;
}

/* Ad inside special days section - Enhanced visibility */
.special-days-content .ad-native {
    margin: 0;
    padding: 16px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    overflow: visible;
    min-height: 120px;
    position: relative;
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.special-days-content .ad-native .adsbygoogle {
    display: block !important;
    height: auto !important;
    width: 100% !important;
    max-width: 300px !important;
    min-height: 120px !important;
    margin: 0 auto;
}

body[data-theme="dark"] .special-days-content .ad-native {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Mobile responsive for special days */
@media (max-width: 768px) {
    .special-days-section {
        padding: 20px 15px;
        margin: 0 auto;
        border-radius: 18px;
    }
    
    .special-days-section h3 {
        font-size: 22px;
        gap: 10px;
    }
    
    .special-days-section h3 i {
        font-size: 26px;
    }
    
    .today-section, .tomorrow-section {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .today-section h4, .tomorrow-section h4 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .special-days-section {
        padding: 18px 12px;
        margin: 0 auto;
        border-radius: 16px;
    }
    
    .special-days-section h3 {
        font-size: 20px;
        gap: 8px;
    }
    
    .special-days-section h3 i {
        font-size: 24px;
    }
    
    .today-section, .tomorrow-section {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .today-section h4, .tomorrow-section h4 {
        font-size: 15px;
    }
    
    .today-section > div, .tomorrow-section > div {
        font-size: 14px;
    }
}

/* ===== FULL WIDTH WEATHER FIX ===== */

.top-section {
  width: 100%;
  max-width: 100%;
}

.weather-dashboard {
  width: 100%;
  max-width: 100%;
}

/* যদি container class থাকে */
.container,
.main-container,
.content-wrapper {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ============================================
   COMPACT PROFESSIONAL FOOTER
   ============================================ */

.app-footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 0;
  margin-top: 30px;
  position: relative;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
}

.app-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  border-radius: 20px 20px 0 0;
}

/* Main Footer Row */
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  flex-wrap: wrap;
  gap: 15px;
}

/* Brand */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand i {
  font-size: 1.8em;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand span {
  font-size: 1.1em;
  font-weight: 700;
  color: #fff;
}

/* Compact Links */
.footer-links-compact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links-compact a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 6px;
}

.footer-links-compact a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Compact Social */
.footer-social-compact {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-btn:hover {
  transform: translateY(-3px);
  background: #667eea;
  border-color: #667eea;
}

/* Features Bar */
.footer-features-compact {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.2);
  flex-wrap: wrap;
}

.footer-features-compact span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.footer-features-compact i {
  color: #667eea;
  font-size: 14px;
}

/* Copyright */
.footer-copyright-compact {
  text-align: center;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.3);
}

.footer-copyright-compact p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   MOBILE RESPONSIVE FOOTER
   ============================================ */

@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    text-align: center;
    padding: 15px 20px;
    gap: 12px;
  }
  
  .footer-brand {
    justify-content: center;
  }
  
  .footer-links-compact {
    justify-content: center;
    gap: 15px;
  }
  
  .footer-social-compact {
    justify-content: center;
  }
  
  .footer-features-compact {
    gap: 15px;
    padding: 10px 15px;
  }
  
  .footer-features-compact span {
    font-size: 11px;
  }
  
  .footer-copyright-compact {
    padding: 10px 15px;
  }
  
  .footer-copyright-compact p {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .footer-brand span {
    font-size: 1em;
  }
  
  .footer-brand i {
    font-size: 1.5em;
  }
  
  .footer-links-compact {
    gap: 10px;
  }
  
  .footer-links-compact a {
    font-size: 12px;
    padding: 3px 6px;
  }
  
  .social-btn {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  
  .footer-features-compact {
    flex-direction: column;
    gap: 8px;
  }
}

/* ============================================
   ENHANCED MOBILE SIDEBAR WITH TOUCH SUPPORT
   ============================================ */

.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body[data-theme="dark"] .sidebar {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
}

.close-sidebar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.close-sidebar:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 56px;
}

.sidebar-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.sidebar-item:active {
    background: rgba(102, 126, 234, 0.2);
}

body[data-theme="dark"] .sidebar-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

body[data-theme="dark"] .sidebar-item:hover {
    background: rgba(102, 126, 234, 0.15);
}

.sidebar-item i {
    margin-right: 14px;
    font-size: 1.3em;
    width: 24px;
    text-align: center;
    color: #667eea;
}

body[data-theme="dark"] .sidebar-item i {
    color: #66b0ff;
}

.sidebar-item span {
    font-size: 1em;
    font-weight: 500;
}

/* Mobile Sidebar Enhancements */
@media (max-width: 768px) {
    .sidebar {
        width: 260px;
        left: -260px;
    }
    
    .sidebar-header {
        padding: 16px;
    }
    
    .sidebar-header h3 {
        font-size: 1.2em;
    }
    
    .close-sidebar {
        width: 32px;
        height: 32px;
        font-size: 1.3em;
    }
    
    .sidebar-item {
        padding: 14px 16px;
        min-height: 52px;
    }
    
    .sidebar-item i {
        font-size: 1.2em;
        margin-right: 12px;
    }
    
    .sidebar-item span {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100vw;
        max-width: 100vw;
        left: -100vw;
    }
    
    .sidebar-header {
        padding: 14px 16px;
    }
    
    .sidebar-header h3 {
        font-size: 1.1em;
    }
    
    .sidebar-item {
        padding: 12px 16px;
        min-height: 48px;
    }
    
    .sidebar-item i {
        font-size: 1.1em;
        margin-right: 10px;
    }
    
    .sidebar-item span {
        font-size: 0.9em;
    }
}

/* ============================================
   ENHANCED MOBILE CALENDAR DAY CELLS
   ============================================ */

/* Base day cell styles with mobile optimization */
.day {
    position: relative;
    padding: 10px 6px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #333;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #fff;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.day:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.day:active {
    transform: scale(0.96);
    background-color: #e3f2fd;
}

body[data-theme="dark"] .day {
    color: #e0e0e0;
    background: #2a2a2a;
    border-color: #404040;
}

body[data-theme="dark"] .day:hover {
    background: #333;
}

/* Current day highlight - Enhanced visibility */
.day.current-day {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, #f06595 100%) !important;
    color: white !important;
    border: 3px solid #ff4757 !important;
    box-shadow: 
        0 0 0 4px rgba(255, 71, 87, 0.3),
        0 4px 15px rgba(255, 71, 87, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05);
    z-index: 10;
    font-weight: 700;
    position: relative;
}

.day.current-day::before {
    /* content: "আজ"; */
    display: none;
}

.day.current-day:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff4757 50%, #ff6b81 100%) !important;
    transform: scale(1.08);
    box-shadow: 
        0 0 0 5px rgba(255, 71, 87, 0.4),
        0 6px 20px rgba(255, 71, 87, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.4) !important;
}

.day.current-day .gregorian-number {
    color: white !important;
    font-weight: 800;
    font-size: 1.3em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Dark mode current day */
body[data-theme="dark"] .day.current-day {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 50%, #f06595 100%) !important;
    border-color: #ff6b81 !important;
    box-shadow: 
        0 0 0 4px rgba(255, 107, 129, 0.4),
        0 4px 20px rgba(255, 107, 129, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.2) !important;
}

body[data-theme="dark"] .day.current-day::before {
    background: #ff6b81;
    color: white;
}

body[data-theme="dark"] .day.current-day .gregorian-number {
    color: white !important;
}

/* Mobile current day adjustments */
@media (max-width: 768px) {
    .day.current-day {
        transform: scale(1.03);
        border-width: 2px !important;
    }
    
    .day.current-day::before {
        font-size: 8px;
        padding: 1px 6px;
        top: -6px;
    }
    
    .day.current-day .gregorian-number {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .day.current-day {
        transform: scale(1.02);
        border-width: 2px !important;
    }
    
    .day.current-day::before {
        font-size: 7px;
        padding: 1px 4px;
        top: -5px;
    }
}

/* Mobile Calendar Day Cells */
@media (max-width: 768px) {
    .days-grid {
        gap: 3px;
    }
    
    .day {
        min-height: 55px;
        padding: 6px 3px;
        font-size: 12px;
        border-radius: 8px;
    }
    
    .day:hover {
        transform: translateY(-1px);
    }
    
    .day:active {
        transform: scale(0.94);
    }
    
    .bengali-date {
        font-size: 0.72em;
        margin-top: 1px;
    }
    
    .weekday {
        font-size: 11px;
        padding: 4px 2px;
    }
    
    .day-badges {
        right: 2px;
        top: 2px;
        gap: 1px;
    }
    
    /* Vrata day mobile optimizations */
    .day.ekadashi-day::after,
    .day.mahadvadashi-day::after,
    .day.maha-dvadashi-day::after,
    .day.paran-day::after,
    .day.shivratri-day::after {
        font-size: 8px;
        padding: 1px 3px;
        top: 3px;
        right: 3px;
    }
}

@media (max-width: 480px) {
    .days-grid {
        gap: 2px;
    }
    
    .day {
        min-height: 48px;
        padding: 4px 2px;
        font-size: 11px;
        border-radius: 6px;
    }
    
    .day:hover {
        transform: none;
        box-shadow: none;
    }
    
    .day:active {
        transform: scale(0.92);
    }
    
    .bengali-date {
        font-size: 0.7em;
        margin-top: 1px;
    }
    
    .weekday {
        font-size: 10px;
        padding: 3px 1px;
    }
    
    .day-badges {
        right: 1px;
        top: 1px;
        gap: 1px;
    }
    
    /* Hide vrata badges on very small screens, rely on background colors */
    @media (max-width: 360px) {
        .day.ekadashi-day::after,
        .day.mahadvadashi-day::after,
        .day.maha-dvadashi-day::after,
        .day.paran-day::after,
        .day.shivratri-day::after {
            display: none;
        }
    }
}

/* ============================================
   ENHANCED MOBILE MODAL DIALOGS
   ============================================ */

/* Mobile Modal Improvements */
@media (max-width: 768px) {
    .modal {
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
    
    .modal-content {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
        border-radius: 20px;
        transform: scale(0.95) translateY(30px);
    }
    
    .modal-header {
        padding: 18px 20px 14px;
        border-radius: 20px 20px 0 0;
    }
    
    .date-title {
        font-size: 1.2em;
    }
    
    .date-nav-btn,
    .share-btn,
    .close {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 1.1em;
    }
    
    .modal-actions {
        gap: 8px;
    }
    
    /* Tab buttons scrollable on mobile */
    .tab-buttons {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 4px;
        gap: 6px;
        scrollbar-width: none;
    }
    
    .tab-buttons::-webkit-scrollbar {
        display: none;
    }
    
    .tab-button {
        padding: 10px 14px;
        font-size: 0.85em;
        white-space: nowrap;
        min-width: auto;
        flex-shrink: 0;
    }
    
    .tab-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        max-width: 98%;
        border-radius: 16px;
        max-height: 95vh;
        transform: scale(0.98) translateY(20px);
    }
    
    .modal-header {
        padding: 14px 16px 12px;
        border-radius: 16px 16px 0 0;
    }
    
    .date-navigation {
        gap: 10px;
    }
    
    .date-title {
        font-size: 1em;
    }
    
    .date-nav-btn,
    .share-btn,
    .close {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        font-size: 1em;
    }
    
    .modal-actions {
        gap: 6px;
        margin-left: 8px;
    }
    
    .tab-button {
        padding: 8px 12px;
        font-size: 0.8em;
    }
    
    .tab-content {
        padding: 12px;
    }
    
    /* Bengali details mobile optimization */
    .bengali-item {
        padding: 10px 12px;
        font-size: 0.9em;
    }
    
    .memorable-day-item {
        padding: 12px 14px;
    }
    
    .memorable-day-item p {
        font-size: 0.9em;
    }
}

/* ============================================
   MOBILE PANJIKA INFO SECTION
   ============================================ */

@media (max-width: 768px) {
    .panjika-info {
        padding: 16px;
        border-radius: 12px;
        margin: 0 auto;
    }
    
    .panjika-info h2 {
        font-size: 1.5em;
    }
    
    .panjika-info p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .panjika-info {
        padding: 12px;
        border-radius: 10px;
        margin: 0 auto;
    }
    
    .panjika-info h2 {
        font-size: 1.3em;
        margin-bottom: 8px;
    }
    
    .panjika-info p {
        font-size: 0.9em;
        line-height: 1.5;
        margin-bottom: 10px;
    }
}

/* ============================================
   MOBILE CONTENT CONTAINER
   ============================================ */

@media (max-width: 768px) {
    .content-container {
        padding: 0 10px;
    }
    
    .card-base {
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .content-container {
        padding: 0 6px;
    }
    
    .card-base {
        margin-bottom: 8px;
        border-radius: 12px;
    }
}

/* ============================================
   MOBILE TOUCH IMPROVEMENTS
   ============================================ */

/* Improve touch targets throughout */
@media (max-width: 768px) {
    button,
    .button,
    [role="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    input,
    select,
    textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Remove hover effects on touch devices */
    @media (hover: none) {
        .day:hover,
        .sidebar-item:hover,
        .weather-stat:hover {
            transform: none;
            box-shadow: none;
        }
        
        .social-btn:hover {
            transform: none;
        }
    }
}

@media (max-width: 480px) {
    button,
    .button,
    [role="button"] {
        min-height: 40px;
        min-width: 40px;
    }
}

/* ============================================
   SAFE AREA INSETS FOR NOTCH DEVICES
   ============================================ */

@supports (padding-top: env(safe-area-inset-top)) {
    @media (max-width: 768px) {
        .app-header {
            padding-top: max(12px, env(safe-area-inset-top));
        }
        
        .sidebar {
            padding-top: env(safe-area-inset-top);
        }
        
        .modal-content {
            margin-top: env(safe-area-inset-top);
        }
        
        .notification-panel {
            padding-top: env(safe-area-inset-top);
        }
    }
    
    @media (max-width: 480px) {
        .app-header {
            padding-top: max(8px, env(safe-area-inset-top));
        }
    }
}

/* Panjika Information Section */
.panjika-info {
    margin-left: auto;
    margin-right: auto;
}

body[data-theme="dark"] .panjika-info {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-left-color: #0d6efd;
}

body[data-theme="dark"] .panjika-info h2 {
    color: #0d6efd;
}

body[data-theme="dark"] .panjika-info p {
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .panjika-info {
        margin: 0 auto;
        padding: 20px 15px;
    }
    
    .panjika-info h2 {
        font-size: 1.5em;
    }
    
    .panjika-info p {
        font-size: 1em;
    }
}

/* Extra small mobile optimization */
@media (max-width: 480px) {
    .top-features-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .days-grid {
        gap: 2px;
    }
    
    .day {
        font-size: 0.75em;
        padding: 2px 1px;
    }
    
    .weekday {
        font-size: 0.75em;
        padding: 2px 1px;
    }
    
    .input-with-icon {
        min-width: 140px;
    }
    
    .sun-weather,
    .weather-info {
        min-width: 140px;
    }
    
    .weather-dashboard {
        padding: 15px 10px;
        margin-bottom: 10px;
    }
    
    /* Compact weather header mobile optimizations */
    .weather-header {
        gap: 3px;
        margin-bottom: 8px;
        padding-right: 140px; /* Space for sun-times on mobile */
    }
    
    .temperature-row {
        gap: 6px;
        max-width: calc(100% - 140px);
    }
    
    .sun-times {
        gap: 6px;
        top: 6px;
        right: 6px;
    }
    
    .sun-box {
        padding: 3px 5px;
        min-width: 65px;
        gap: 3px;
        border-radius: 6px;
    }
    
    .sun-label {
        font-size: 9px;
    }
    
    .sun-time {
        font-size: 11px;
    }
    
    .weather-icon-wrap {
        width: 20px;
        height: 20px;
    }
    
    .weather-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .weather-temp {
        font-size: 20px;
    }
    
    .weather-desc {
        font-size: 13px;
    }
    
    .feels-like {
        font-size: 11px;
    }
    
    .sun-times {
        gap: 12px;
    }
    
    .sun-label {
        font-size: 9px;
    }
    
    .sun-time {
        font-size: 11px;
    }
    
    .weather-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        margin-top: 6px;
    }
    
    .weather-card {
        padding: 5px 3px;
        gap: 4px;
    }
    
    .weather-stats .weather-icon-wrap {
        width: 22px;
        height: 22px;
    }
    
    .weather-stats .weather-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .weather-card p {
        font-size: 11px;
    }
    
    .weather-card h3 {
        font-size: 12px;
    }
    
    /* Reduce text sizes */
    .calendar-title {
        font-size: 1.2em;
    }
    
    .calendar-nav button {
        font-size: 0.65em;
        padding: 3px 5px;
    }
    
    .panjika-info h2 {
        font-size: 1.3em;
    }
    
    .panjika-info p {
        font-size: 0.9em;
    }
    
    /* Reduce logo/icon sizes */
    .login-header i {
        font-size: 2.2em;
    }
    
    .login-header h2 {
        font-size: 1.5em;
    }
    
    /* Login page mobile adjustments */
    .login-container {
        padding: 15px;
    }
    
    .login-intro {
        padding: 18px 20px;
        margin-bottom: 15px;
        border-radius: 16px;
    }
    
    .login-intro h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .login-intro li {
        font-size: 12px;
        padding: 6px 10px;
        margin: 6px 0;
    }
    
    .login-card {
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    .input-group {
        margin-bottom: 18px;
    }
    
    .input-group input,
    .input-group select {
        padding: 14px 14px 14px 45px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .input-group i {
        left: 15px;
        font-size: 1em;
    }
    
    .login-card button {
        padding: 14px 20px;
        font-size: 1em;
    }
    
    .menu-toggle {
        font-size: 1.1em;
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .header-title h1 {
        font-size: 1.15em;
        letter-spacing: 0.3px;
    }
    
    .theme-toggle {
        font-size: 1.1em;
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .notification-bell {
        font-size: 1.1em;
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .header-controls {
        gap: 8px;
    }
    
    .notification-count {
        min-width: 18px;
        height: 18px;
        font-size: 0.7em;
        padding: 0 5px;
    }
    
    .install-btn {
        padding: 8px 12px;
        font-size: 0.75em;
    }
    
    .install-btn i {
        font-size: 12px;
    }
}
* {
    box-sizing: border-box;
    max-width: 100%;
}