/* --- General Reset --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
}

body { 
    background: #f0f2f5; 
    color: #333;
}

/* --- Login Page Design --- */
.login-wrapper { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100vh; 
    background: linear-gradient(135deg, #1a252f, #3498db); 
}

.login-box { 
    background: white; 
    padding: 40px; 
    border-radius: 12px; 
    width: 350px; 
    text-align: center; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); 
}

.login-box h2 {
    margin-bottom: 25px;
    color: #2c3e50;
}

.login-box input { 
    width: 100%; 
    padding: 12px; 
    margin-bottom: 15px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    outline: none;
    transition: 0.3s;
}

.login-box input:focus {
    border-color: #3498db;
}

.login-box button { 
    width: 100%; 
    padding: 12px; 
    background: #3498db; 
    color: white; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: bold; 
    transition: 0.3s;
}

.login-box button:hover {
    background: #2980b9;
}

.error { 
    color: #e74c3c; 
    display: none; 
    margin-bottom: 15px; 
    font-size: 14px; 
}

/* --- Dashboard Layout --- */
.container { 
    display: flex; 
}

/* Sidebar */
.sidebar { 
    width: 260px; 
    height: 100vh; 
    background: #1a252f; 
    color: white; 
    padding: 25px; 
    position: fixed; 
}

.sidebar h2 { 
    color: #3498db; 
    margin-bottom: 30px; 
    text-align: center;
    letter-spacing: 1px;
}

.sidebar ul { 
    list-style: none; 
}

.sidebar ul li {
    margin-bottom: 8px;
}

.sidebar ul li a { 
    color: #bdc3c7; 
    text-decoration: none; 
    display: flex; 
    align-items: center;
    padding: 12px; 
    border-radius: 8px; 
    transition: 0.3s; 
}

.sidebar ul li a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.sidebar ul li a:hover, 
.sidebar ul li a.active { 
    background: #3498db; 
    color: white; 
}

/* Main Content Area */
.main-content { 
    margin-left: 260px; 
    padding: 40px; 
    width: calc(100% - 260px); 
}

header {
    margin-bottom: 30px;
}

header h1 {
    font-size: 24px;
    color: #2c3e50;
}

/* --- Stats Cards Grid --- */
.stats { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 20px; 
    margin-bottom: 40px; 
}

.card { 
    background: white; 
    padding: 25px; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card i { 
    font-size: 28px; 
    margin-right: 20px; 
    padding: 15px; 
    border-radius: 12px; 
}

.card-text h3 {
    font-size: 13px;
    color: #7f8c8d;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.card-text p {
    font-size: 22px;
    font-weight: bold;
    color: #2c3e50;
}

/* Card Varieties */
.card-blue i { background: #e3f2fd; color: #2196f3; }
.card-green i { background: #e8f5e9; color: #2ecc71; }
.card-orange i { background: #fff3e0; color: #f39c12; }
.card-red i { background: #fdeaea; color: #e74c3c; }

/* --- Table Design --- */
.data-table { 
    background: white; 
    padding: 30px; 
    border-radius: 15px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.data-table h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #2c3e50;
}

table { 
    width: 100%; 
    border-collapse: collapse; 
}

table th { 
    background: #f8f9fa;
    color: #7f8c8d;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    padding: 15px;
    text-align: left;
}

table td { 
    padding: 15px; 
    text-align: left; 
    border-bottom: 1px solid #eee; 
    font-size: 15px;
}

table tr:hover {
    background-color: #fcfcfc;
}

/* Action Button Style */
.view-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: 0.3s;
}

.view-btn:hover {
    background: #219150;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

/* --- Modal Design (পপআপ) --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none; /* JS দিয়ে flex করা হবে */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

.modal-header {
    background: #3498db;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 { font-size: 18px; }

.close-modal {
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    margin-bottom: 12px;
    font-size: 15px;
    color: #444;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 8px;
}

.modal-body strong {
    color: #2c3e50;
    width: 120px;
    display: inline-block;
}

@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- Responsive Layout --- */
@media (max-width: 1024px) {
    .sidebar { width: 80px; padding: 20px 10px; }
    .sidebar h2, .sidebar ul li a span { display: none; }
    .main-content { margin-left: 80px; width: calc(100% - 80px); }
    .sidebar ul li a i { margin-right: 0; font-size: 20px; }
}

@media (max-width: 768px) {
    .main-content { padding: 20px; }
    .stats { grid-template-columns: 1fr; }
    .data-table { overflow-x: auto; }
}