* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', 'SolaimanLipi', Tahoma, sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

.login-box {
    max-width: 400px;
    margin: 80px auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.login-box h1 {
    text-align: center;
    color: #1a5f3f;
    margin-bottom: 8px;
    font-size: 28px;
}
.login-box .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #444;
    font-size: 14px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1a5f3f;
    outline: none;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #1a5f3f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { background: #144d33; }
.btn-block { width: 100%; }
.btn-danger { background: #c0392b; }
.btn-warning { background: #f39c12; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

.header {
    background: #1a5f3f;
    color: #fff;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.header .logo { font-size: 20px; font-weight: bold; }
.header a { color: #fff; text-decoration: none; margin-left: 12px; font-size: 14px; }
.header a:hover { text-decoration: underline; }

.container {
    max-width: 1100px;
    margin: 25px auto;
    padding: 0 15px;
}

.card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.card h2 {
    color: #1a5f3f;
    margin-bottom: 15px;
    font-size: 20px;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #fff;
}
table th {
    background: #1a5f3f;
    color: #fff;
    padding: 12px;
    text-align: left;
    font-size: 14px;
}
table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
table tr:hover { background: #f9f9f9; }

.alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
}
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.alert-error   { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.alert-info    { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.stat-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    text-align: center;
    border-top: 4px solid #1a5f3f;
}
.stat-box .number {
    font-size: 32px;
    font-weight: bold;
    color: #1a5f3f;
}
.stat-box .label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.badge-present { background: #d4edda; color: #155724; }
.badge-absent  { background: #f8d7da; color: #721c24; }
.badge-leave   { background: #fff3cd; color: #856404; }
.badge-late    { background: #d1ecf1; color: #0c5460; }