/* =====================================================
   Society MIS - Base CSS
   ===================================================== */

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

html,
body{
    height:100%;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:#f4f6f9;
    color:#333;
}

/* =========================================
   Header
========================================= */

.top-header{
    height:70px;
    background:rgb(132, 2, 2);
    color:#fff;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:0 25px;

    box-shadow:0 2px 8px rgba(0,0,0,.15);
}

.logo{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo-img{
    width:50px;
    height:50px;
    border-radius:50%;
    background:#fff;
    padding:4px;
}

.logo h3{
    margin:0;
    font-size:24px;
    font-weight:600;
}

.logo small{
    color:#d9ecff;
    font-size:13px;
}

.user-info{
    font-size:15px;
    font-weight:500;
}

/* =========================================
   Navigation
========================================= */

.menu-bar{
    background:#f42e2e;
    min-height:50px;
}

.menu-bar .navbar-nav{
    gap:5px;
}

.menu-bar .nav-link{
    color:#fff !important;
    padding:12px 18px;
    border-radius:5px;
    transition:.3s;
}

.menu-bar .nav-link:hover{
    background:#0d6efd;
}

.menu-bar .nav-link.active{
    background:#0d6efd;
}

/* =========================================
   Main Content
========================================= */

main{
    min-height:calc(100vh - 170px);
    padding-bottom:30px;
}

.page-title{
    margin-bottom:20px;
}

.page-title h2{
    font-size:28px;
    font-weight:600;
    color:#1b4f72;
}

/* =========================================
   Cards
========================================= */

.card{
    border:none;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.card-header{
    background:#0d6efd;
    color:#fff;
    font-weight:600;
}

/* =========================================
   Forms
========================================= */

.form-control,
.form-select{
    border-radius:6px;
}

.form-control:focus,
.form-select:focus{
    border-color:#0d6efd;
    box-shadow:0 0 0 .15rem rgba(13,110,253,.25);
}

/* =========================================
   Buttons
========================================= */

.btn{
    border-radius:6px;
    font-weight:500;
}

.btn-primary{
    background:#0d6efd;
}

.btn-success{
    background:#198754;
}

.btn-danger{
    background:#dc3545;
}

.btn-warning{
    color:#fff;
}

/* =========================================
   Tables
========================================= */

.table{
    background:#fff;
}

.table thead{
    background:#0d6efd;
    color:#fff;
}

.table th{
    vertical-align:middle;
}

.table td{
    vertical-align:middle;
}

/* =========================================
   Alerts
========================================= */

.alert{
    border-radius:8px;
}

/* =========================================
   Footer
========================================= */

footer{
    background:#1b4f72;
    color:#fff;
    text-align:center;
    padding:15px;
    font-size:14px;
    margin-top:30px;
}

/* =========================================
   Utility Classes
========================================= */

.shadow-box{
    background:#fff;
    padding:20px;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.required{
    color:red;
}

.text-right{
    text-align:right;
}

/* =========================================
   Responsive
========================================= */

@media (max-width:768px){

    .top-header{
        flex-direction:column;
        height:auto;
        padding:15px;
        text-align:center;
        gap:10px;
    }

    .logo{
        justify-content:center;
    }

    .logo h3{
        font-size:20px;
    }

    .user-info{
        font-size:14px;
    }

    .menu-bar .nav-link{
        padding:10px;
    }

    main{
        padding-left:10px;
        padding-right:10px;
    }

}