:root {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #1f2937;
    --text-secondary: #6b7280;
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --border-color: #e5e7eb;
    --accent-color: #10b981;
    --error-color: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
    --bg-color: #111827;
    --card-bg: #1f2937;
    --text-color: #f3f4f6;
    --text-secondary: #9ca3af;
    --primary-color: #6366f1;
    --primary-hover: #818cf8;
    --border-color: #374151;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

#theme-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
}

#theme-btn:hover {
    background-color: rgba(128, 128, 128, 0.1);
}

/* Landing Page */
.landing-container {
    text-align: center;
    padding-top: 4rem;
}

.landing-container h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.role-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.role-card {
    text-decoration: none;
    color: var(--text-color);
    width: 300px;
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-color);
}

.icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Auth & Forms */
.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.login-card {
    max-width: 400px;
    margin: 4rem auto;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: rgba(128, 128, 128, 0.1);
}

.full-width {
    width: 100%;
}

.error-msg {
    color: var(--error-color);
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.25rem;
}

/* Dashboard */
.hidden {
    display: none;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.grid-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.summary-table th,
.summary-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.summary-table th {
    background-color: var(--bg-color);
    font-weight: 600;
}

/* User Panel */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.room-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-names {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.rent-details {
    margin-top: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.detail-row.total {
    font-weight: 700;
    color: var(--accent-color);
    border-top: 1px dashed var(--border-color);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.link-card {
    text-align: center;
    border: 2px dashed var(--primary-color);
    background-color: rgba(79, 70, 229, 0.05);
}

.btn-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--primary-color);
}

.block-link {
    display: block;
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 600px) {
    .grid-form {
        grid-template-columns: 1fr;
    }

    .role-cards {
        flex-direction: column;
        align-items: center;
    }

    .role-card {
        width: 100%;
    }
}

/* Print Styling */
@media print {
    body {
        background-color: white !important;
        color: black !important;
    }

    .theme-toggle,
    .btn-secondary,
    .btn-primary,
    .btn-link,
    .link-card,
    select {
        display: none !important;
    }

    .container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .grid-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Better use of A4 width */
        gap: 1rem;
        page-break-inside: avoid;
    }

    .card {
        border: 1px solid #ccc;
        box-shadow: none;
        break-inside: avoid;
    }

    /* Force light mode variables regardless of theme */
    :root {
        --bg-color: #ffffff;
        --card-bg: #ffffff;
        --text-color: #000000;
        --text-secondary: #333333;
        --border-color: #cccccc;
    }
}
.developer-box {
    margin: 20px auto 0;
    padding: 8px 18px;
    width: fit-content;
    max-width: 90%;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    border-radius: 20px;
    animation: bounce 2s infinite;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Soft bounce */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}
/* Large screens (laptop / desktop) */
@media (min-width: 1024px) {
    .developer-box {
        font-size: 15px;   /* আগে ছিল 13px */
        padding: 10px 22px;
    }
}
