* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #34495e;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    --gradient-start: #2ecc71;
    --gradient-end: #27ae60;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding-bottom: 70px; /* বটম নেভের জন্য জায়গা */
    color: var(--text-color);
    line-height: 1.6;
}

/* স্টিকি হেডার */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px;
    color: white;
}

.gradient-header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    box-shadow: var(--box-shadow);
}

.header-content h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.location {
    font-size: 0.9rem;
    opacity: 0.9;
}

.location i {
    margin-right: 6px;
}

/* বটম নেভিগেশন */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.bottom-nav a {
    color: var(--text-color);
    text-decoration: none;
    text-align: center;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    padding: 4px 12px;
    border-radius: 20px;
}

.bottom-nav a i {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.bottom-nav a.active {
    color: var(--primary-color);
    background: rgba(46, 204, 113, 0.1);
}

/* মেইন কন্টেইনার */
.container {
    padding: 16px;
    max-width: 500px;
    margin: 0 auto;
}

/* কার্ড স্টাইল */
.card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.card h3 {
    margin-bottom: 16px;
    color: var(--dark-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* কাউন্টডাউন */
.countdown-card {
    text-align: center;
}

.countdown-timer {
    display: flex;
    justify-content: space-around;
    margin-top: 12px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-item .number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.countdown-item .label {
    font-size: 0.8rem;
    color: #666;
}

.countdown-expired {
    font-size: 1.2rem;
    color: var(--danger-color);
    font-weight: bold;
    padding: 10px;
}

/* স্ট্যাটস গ্রিড */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 16px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.stat-card i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-color);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
}

/* প্রোগ্রেস বার */
.progress-card {
    text-align: center;
}

.progress-container {
    background: #f0f0f0;
    border-radius: 10px;
    height: 30px;
    overflow: hidden;
    margin: 10px 0;
    position: relative;
}

.progress-bar {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    height: 100%;
    width: 0%;
    transition: width 1s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
}

.progress-wrapper {
    margin-top: 10px;
}

.progress-amount {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.progress-container {
    width: 100%;
    height: 18px;
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    border-radius: 20px;
    transition: width 0.6s ease-in-out;
}

.progress-percentage {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* এক্সপেন্স আইটেম */
.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.expense-item:last-child {
    border-bottom: none;
}

.expense-info {
    display: flex;
    flex-direction: column;
}

.expense-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.expense-date {
    font-size: 0.8rem;
    color: #666;
}

.expense-amount {
    font-weight: bold;
    color: var(--danger-color);
}

/* মিশন আইটেম */
.mission-item {
    margin-bottom: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.mission-item h4 {
    margin-bottom: 8px;
    color: var(--dark-color);
}

.mission-item p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.mission-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* স্ট্যাটাস ব্যাজ */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-ongoing {
    background: #ffeaa7;
    color: #d35400;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #f8d7da;
    color: #721c24;
}

/* মেম্বার আইটেম */
.member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.member-info {
    display: flex;
    flex-direction: column;
}

.member-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.member-batch {
    font-size: 0.8rem;
    color: #666;
}

.member-payment {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.payment-amount {
    font-weight: bold;
    margin-bottom: 4px;
}

.payment-status {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-partial {
    background: #fff3cd;
    color: #856404;
}

.status-due {
    background: #f8d7da;
    color: #721c24;
}

/* বাটন স্টাইল */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Hind Siliguri', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(46, 204, 113, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.btn-large {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* ফর্ম এলিমেন্ট */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Hind Siliguri', sans-serif;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* এলার্ট */
.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* গ্যালারি গ্রিড */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* পোস্টার */
.poster-container {
    width: 100%;
    margin-bottom: 16px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.poster-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* লাইটবক্স */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* ভোটিং সেকশন */
.vote-option {
    margin-bottom: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.vote-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.vote-category {
    font-weight: bold;
    color: var(--primary-color);
}

.vote-count {
    color: #666;
    font-size: 0.9rem;
}

.vote-bar-container {
    background: #f0f0f0;
    border-radius: 5px;
    height: 20px;
    overflow: hidden;
    margin: 8px 0;
}

.vote-bar {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    height: 100%;
    width: 0%;
    transition: width 1s ease;
}

.vote-percentage {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* নো ডাটা মেসেজ */
.no-data {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}

/* লোডিং স্পিনার */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* রেসপন্সিভ ডিজাইন */
@media (max-width: 360px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .countdown-item .number {
        font-size: 1.5rem;
    }
    
    .bottom-nav a {
        font-size: 0.7rem;
    }
    
    .bottom-nav a i {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 600px;
    }
}

/* অ্যানিমেশন */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .stat-card {
    animation: fadeIn 0.5s ease-out;
}

/* টাচ ফ্রেন্ডলি এলিমেন্ট */
button, .btn, a {
    min-height: 44px;
    min-width: 44px;
}

/* স্ক্রলবার কাস্টমাইজেশন */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}