/* মৌলিক স্টাইল */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Siyam Rupali', 'SolaimanLipi', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: #121212;
    color: #f5f5f5;
}

/* থিম টগল */
.theme-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

#themeToggle {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
}

/* চলমান বার্তা */
.marquee-container {
    background: #1a5f7a;
    color: white;
    padding: 5px 0;
    margin-bottom: 20px;
}

marquee {
    font-size: 16px;
    font-weight: bold;
}

/* হেডার */
header {
    background: linear-gradient(135deg, #1a5f7a 0%, #2c3e50 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.logo p {
    font-size: 14px;
    opacity: 0.9;
}

.emergency-number {
    background: #e74c3c;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
}

.emergency-number span {
    font-size: 22px;
}

/* কন্টেইনার */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* তারিখ ও সময় সেকশন */
.datetime-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: center;
}

.datetime-section h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.datetime-display {
    font-size: 20px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

body.dark-mode .datetime-section {
    background: #1e1e1e;
    color: #f5f5f5;
}

/* লগইন অপশন */
.login-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.login-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.login-card:hover {
    transform: translateY(-5px);
}

.login-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.login-card p {
    color: #666;
    margin-bottom: 20px;
}

body.dark-mode .login-card {
    background: #1e1e1e;
    color: #f5f5f5;
}

body.dark-mode .login-card h3 {
    color: #3498db;
}

/* বাটন */
.btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: #27ae60;
}

.btn-success:hover {
    background: #219653;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-small {
    padding: 5px 15px;
    font-size: 14px;
}

/* লগইন কন্টেইনার */
.login-container, .register-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

body.dark-mode .login-container,
body.dark-mode .register-container {
    background: #1e1e1e;
    color: #f5f5f5;
}

.login-header, .register-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-form, .register-form, .member-form {
    margin-top: 20px;
}

/* ফর্ম স্টাইল */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

body.dark-mode .form-group label {
    color: #f5f5f5;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select {
    background: #2c2c2c;
    color: #f5f5f5;
    border-color: #444;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* মেসেজ */
.error-message {
    background: #fee;
    color: #c00;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #c00;
}

.success-message {
    background: #efe;
    color: #090;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #090;
    text-align: center;
}

body.dark-mode .error-message {
    background: #422;
    color: #ff6b6b;
    border-left-color: #ff6b6b;
}

body.dark-mode .success-message {
    background: #242;
    color: #6bff6b;
    border-left-color: #6bff6b;
}

/* অ্যাপ্রুভাল নোটিস */
.approval-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.whatsapp-number {
    font-size: 24px;
    color: #25D366;
    font-weight: bold;
    margin: 10px 0;
}

body.dark-mode .approval-notice {
    background: #332b00;
    border-color: #665c00;
    color: #ffd700;
}

/* ড্যাশবোর্ড */
.dashboard {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

body.dark-mode .dashboard {
    background: #1e1e1e;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* স্ট্যাটস কার্ড */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.stat-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #6c757d;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 15px;
}

body.dark-mode .stat-card {
    background: #2c2c2c;
    border-color: #444;
}

/* অ্যাকশন বাটন */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.btn-action {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    padding: 25px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: all 0.3s;
}

.btn-action:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-5px);
}

.btn-action span {
    font-size: 40px;
    display: block;
    margin-bottom: 15px;
}

body.dark-mode .btn-action {
    background: #2c2c2c;
    border-color: #444;
    color: #f5f5f5;
}

/* টেবিল */
.members-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.members-table th,
.members-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.members-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

.members-table tr:hover {
    background: #f5f5f5;
}

body.dark-mode .members-table th {
    background: #2c2c2c;
    color: #f5f5f5;
}

body.dark-mode .members-table tr:hover {
    background: #333;
}

/* নো ডাটা */
.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* ইউজার ইনফো */
.user-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-logout, .btn-back {
    background: #e74c3c;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.btn-back {
    background: #95a5a6;
}

/* ফুটার */
footer {
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.copyright p {
    margin-bottom: 5px;
    font-size: 14px;
}

.footer-contact {
    text-align: right;
}

/* রেসপনসিভ */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .user-info {
        flex-direction: column;
    }
}