/* ================= GLOBAL ================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI', sans-serif;
}

body{
    background:#f4f6f9;
}

.app{
    display:flex;
    height:100vh;
}

/* ================= SIDEBAR ================= */
.sidebar{
    width:260px;
    background:#111827;
    color:#fff;
    display:flex;
    flex-direction:column;
}

.logo{
    padding:20px;
    font-size:20px;
    font-weight:600;
    border-bottom:1px solid rgba(255,255,255,.1);
}

.menu{
    list-style:none;
    padding:15px 0;
}

.menu li{
    padding:14px 25px;
    cursor:pointer;
    font-size:15px;
    color:#cbd5e1;
    transition:.2s;
}

.menu li:hover,
.menu li.active{
    background:#2563eb;
    color:#fff;
}

/* ================= MAIN AREA ================= */
.main{
    flex:1;
    display:flex;
    flex-direction:column;
}

.topbar{
    height:60px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 25px;
    box-shadow:0 2px 6px rgba(0,0,0,.05);
}

.topbar h3{
    font-weight:500;
}

.user-box{
    font-size:14px;
    color:#555;
}

.content{
    padding:30px;
    overflow-y:auto;
}

.tab-content{
    display:none;
}

.tab-content.active{
    display:block;
}

/* ================= PAGE HEADER ================= */
.page-header h2{
    font-size:24px;
    font-weight:600;
}

.page-header p{
    color:#6b7280;
    margin-bottom:20px;
}

/* ================= INFO BOX ================= */
.info-box{
    background:#eef4ff;
    padding:12px 16px;
    border-left:4px solid #4a6cf7;
    margin-bottom:20px;
    border-radius:6px;
    font-size:14px;
}

/* ================= CARDS ================= */
.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-bottom:30px;
}

.card{
    background:#fff;
    border-radius:10px;
    box-shadow:0 4px 15px rgba(0,0,0,0.05);
    padding:20px;
}

.card-header h3{
    margin-bottom:15px;
    font-size:18px;
    font-weight:600;
}

.card h4{
    font-size:14px;
    color:#6b7280;
    margin-bottom:10px;
}

.card h2{
    font-size:26px;
    color:#111827;
}

/* ================= FORMS ================= */
.form-row{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.form-group{
    flex:1;
    display:flex;
    flex-direction:column;
    margin-bottom:15px;
}

.form-group label{
    font-size:14px;
    margin-bottom:5px;
    font-weight:500;
}

.form-group input,
.form-group select,
.form-group textarea{
    padding:10px;
    border-radius:6px;
    border:1px solid #d1d5db;
    font-size:14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    outline:none;
    border-color:#4a6cf7;
}

/* ================= BUTTONS ================= */
.btn-primary{
    background:#4a6cf7;
    color:#fff;
    padding:10px 18px;
    border-radius:6px;
    border:none;
    cursor:pointer;
    transition:0.3s;
}

.btn-primary:hover{
    background:#364fc7;
}

.btn-success{
    background:#16a34a;
    color:#fff;
    padding:10px 18px;
    border-radius:6px;
    border:none;
    cursor:pointer;
}

.btn-success:hover{
    background:#15803d;
}

.btn-secondary{
    background:#6b7280;
    color:#fff;
    padding:10px 18px;
    border-radius:6px;
    border:none;
    cursor:pointer;
}

.btn-secondary:hover{
    background:#4b5563;
}

/* ================= TABLE ================= */
.table-responsive{
    overflow-x:auto;
}

.modern-table{
    width:100%;
    border-collapse:collapse;
}

.modern-table th{
    background:#f8f9fa;
    padding:12px;
    text-align:left;
    font-weight:600;
    font-size:14px;
}

.modern-table td{
    padding:12px;
    border-bottom:1px solid #eee;
    font-size:14px;
}

.modern-table tr:hover{
    background:#f9fbff;
}

/* ================= LOADING ================= */
.loading{
    text-align:center;
    padding:20px;
    color:#777;
}



/* ===== FULL SCREEN MODAL ===== */
.modal {
    display: flex;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* ===== LOGIN BOX ===== */
.modal-content {
    background: #ffffff;
    padding: 40px;
    width: 380px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    text-align: center;
    animation: fadeIn 0.4s ease-in-out;
}

/* ===== HEADING ===== */
.modal-content h2 {
    margin-bottom: 25px;
    color: #333;
    font-weight: 600;
}

/* ===== INPUT FIELDS ===== */
.modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
    transition: 0.3s;
}

.modal-content input:focus {
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102,126,234,0.5);
}

/* ===== LOGIN BUTTON ===== */
.modal-content .btn {
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ===== ERROR MESSAGE ===== */
.error {
    color: red;
    margin-bottom: 10px;
    font-size: 14px;
}

/* ===== ANIMATION ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}