/* ১. গ্লোবাল ভেরিয়েবল এবং থিম */
:root {
    --primary-color: #6366f1; /* Modern Indigo */
    --secondary-color: #06b6d4;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent; /* মোবাইলে ট্যাপ করলে নীল দাগ হবে না */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    padding-bottom: 90px; /* বটম নেভিগেশনের জন্য জায়গা */
}

/* ২. স্টিকি হেডার (App Bar) */
header {
    background: var(--card-bg);
    padding: 15px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* ৩. বটম নেভিগেশন মেনু (Mobile Style) */
nav {
    background: var(--nav-bg);
    backdrop-filter: blur(15px); /* ব্লার ইফেক্ট */
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.05);
    z-index: 2000;
    padding: 0 10px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    transition: 0.3s;
    flex: 1;
}

nav a i {
    font-size: 20px;
    margin-bottom: 4px;
}

nav a.active, nav a:active {
    color: var(--primary-color);
}

/* ৪. মেইন কন্টেইনার */
.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* ৫. আধুনিক কার্ড স্টাইল */
.menu-card, .app-card, .deposit-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.02);
}

/* ৬. ইনপুট ডিজাইন */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
}

input, select {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    font-size: 16px;
    transition: 0.3s;
    outline: none;
}

input:focus {
    border-color: var(--primary-color);
    background: #fff;
}

/* ৭. অ্যাপ বাটন */
button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    cursor: pointer;
}

button:active {
    transform: scale(0.96);
}

/* ৮. ড্যাশবোর্ড গ্রিড */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.calc-card {
    background: #fff;
    padding: 16px;
    border-radius: 18px;
    text-align: center;
    box-shadow: var(--shadow);
}

.calc-card i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.calc-card p {
    font-size: 1.1rem;
    font-weight: 800;
}

/* ৯. টেবিল ডিজাইন (Mobile Responsive) */
.table-responsive {
    overflow-x: auto;
    border-radius: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th {
    background-color: #f8fafc;
    padding: 12px;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
}

td {
    padding: 15px 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

/* ১০. ইউটিলিটি */
.delete-btn {
    background: #fee2e2;
    color: var(--danger);
    padding: 8px 12px;
    font-size: 12px;
    width: auto;
    border-radius: 8px;
    box-shadow: none;
}

.total-deposit-box {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 25px;
}
