/* style.css - আপগ্রেডেড ল্যাপটপ ও মোবাইল রেসপন্সিভ ডিজাইন */
:root {
    --primary-color: #2e7d32;     /* খামারের সিগনেচার সবুজ */
    --primary-dark: #1b5e20;
    --bg-color: #f8faf9;
    --card-bg: #ffffff;
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    --expense-color: #e74c3c;     /* খরচের জন্য লাল */
    --invest-color: #2980b9;      /* ইনভেস্টের জন্য নীল */
    --return-color: #e67e22;      /* রিটার্নের জন্য কমলা */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 18px 25px;
    font-size: 1.4rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.2s;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-2px);
}

.card h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.balance-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    text-align: center;
    border: none;
}

.balance-card h3 { color: var(--primary-dark); }
.expense-card { border-top: 4px solid var(--expense-color); }
.sales-card { border-top: 4px solid var(--primary-color); }
.invest-card { border-top: 4px solid var(--invest-color); }
.return-card { border-top: 4px solid var(--return-color); }

.amount {
    font-size: 1.6rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: #fdfdfd;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.btn {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.btn:hover { background-color: var(--primary-dark); }

.table-responsive {
    overflow-x: auto;
    margin-top: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

table th, table td {
    padding: 14px 16px;
    text-align: left;
    font-size: 0.95rem;
    border-bottom: 1px solid #edf2f7;
}

table th {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 600;
}

table tr:last-child td { border-bottom: none; }

.bottom-nav {
    background-color: white;
    display: flex;
    justify-content: center;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.03);
    padding: 10px 0;
    margin-top: auto;
}

.bottom-nav a {
    color: var(--text-muted);
    text-align: center;
    padding: 10px 30px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    margin: 0 5px;
    transition: all 0.2s;
}

.bottom-nav a:hover, .bottom-nav a.active {
    color: var(--primary-color);
    background-color: #e8f5e9;
    font-weight: bold;
}

/* ফিল্টার ও পেজের জন্য অতিরিক্ত সিএসএস */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}
.btn-filter { padding: 11px; margin-top: 24px; }

.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 20px;
    gap: 5px;
}
.pagination a {
    color: var(--text-main);
    padding: 8px 14px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
}
.pagination a.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    body { padding-bottom: 70px; }
    .container { padding: 15px 12px; }
    .card { padding: 15px; border-radius: 10px; }
    .amount { font-size: 1.3rem; }
    .btn-filter { margin-top: 0; }
    
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        justify-content: space-around;
        padding: 5px 0;
        z-index: 1000;
    }
    .bottom-nav a {
        padding: 8px 0;
        font-size: 0.8rem;
        flex: 1;
        margin: 0;
        border-radius: 0;
    }
    .bottom-nav a:hover { background-color: transparent; }
}