
/*====================================================
UI Enhancement V1.0
Module : Global Theme
Author : OpenAI + User
====================================================*/

/* Global Typography */
body{
    font-family:'Inter',sans-serif;
    color:#1e293b;
    background:#f8fafc;
}

/* Card Enhancement */
.card{
    border:none;
    border-radius:16px;
    box-shadow:0 10px 25px rgba(15,23,42,.08);
    transition:.25s ease;
}

.card:hover{
    transform:translateY(-2px);
    box-shadow:0 16px 35px rgba(15,23,42,.12);
}

/* Button */
.btn{
    border-radius:12px;
    font-weight:600;
    transition:.2s ease;
}

.btn:hover{
    transform:translateY(-1px);
}

/* Form */
.form-control,
.form-select{
    border-radius:12px;
    min-height:46px;
    border:1px solid #dbe2ea;
}

.form-control:focus,
.form-select:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 .2rem rgba(37,99,235,.15);
}

/* Table */
.table{
    vertical-align:middle;
}

.table thead th{
    background:#f8fafc;
    font-weight:600;
    border-bottom:2px solid #e5e7eb;
}

/* Smooth Scrollbar (Chrome/Edge) */
::-webkit-scrollbar{
    width:10px;
    height:10px;
}

::-webkit-scrollbar-track{
    background:#eef2f7;
}

::-webkit-scrollbar-thumb{
    background:#cbd5e1;
    border-radius:10px;
}

::-webkit-scrollbar-thumb:hover{
    background:#94a3b8;
}


/*====================================================
SIDEBAR V2
====================================================*/

.sidebar{

    position:fixed;

    top:0;
    left:0;

    width:255px;
    height:100vh;

    display:flex;
    flex-direction:column;

    overflow-y:auto;
    overflow-x:hidden;

    background:
    linear-gradient(
        180deg,
        #172554,
        #1e293b
    );

    box-shadow:
    8px 0 30px rgba(15,23,42,.15);

    padding:18px;

}

.sidebar a{

    border-radius:14px;

    padding:14px 16px;

    margin-bottom:8px;

    font-weight:500;

    font-size:15px;

    transition:.25s ease;

}

.sidebar a i{

    width:24px;

    text-align:center;

    font-size:18px;

}

.sidebar a:hover{

    transform:translateX(4px);

    background:rgba(255,255,255,.08);

}

.sidebar a.active{

    background:linear-gradient(
        90deg,
        #2563eb,
        #3b82f6
    );

    color:white;

    box-shadow:
    0 8px 18px rgba(37,99,235,.35);

}

/*====================================================
SIDEBAR BRAND
====================================================*/

.sidebar-brand{

    display:flex;
    align-items:center;
    gap:15px;

    padding-bottom:18px;
    margin-bottom:20px;

    border-bottom:1px solid rgba(255,255,255,.08);

}

.brand-logo{

    width:60px;
    height:60px;

    border-radius:18px;

    background:linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

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

    color:#fff;

    font-size:28px;

    box-shadow:
    0 10px 25px rgba(37,99,235,.35);

    flex-shrink:0;

}

.sidebar-brand h5{

    margin:0;

    font-size:18px;

    font-weight:700;

    color:#fff;

}

.sidebar-brand small{

    display:block;

    margin-top:3px;

    color:#cbd5e1;

    font-size:12px;

    line-height:18px;

}

/*====================================================
SIDEBAR MENU
====================================================*/

.sidebar a{

    position:relative;

    overflow:hidden;

}

.sidebar a::before{

    content:"";

    position:absolute;

    left:0;
    top:0;

    width:4px;
    height:100%;

    background:#60a5fa;

    opacity:0;

    transition:.25s;

}

.sidebar a:hover::before,
.sidebar a.active::before{

    opacity:1;

}

.sidebar a span{

    transition:.25s;

}

.sidebar a:hover span{

    transform:translateX(3px);

}

/*====================================================
CONTENT
====================================================*/

.content{

    padding:30px;

    background:#f8fafc;

    min-height:100vh;

}

.toggle-btn{

    border-radius:12px;

    width:46px;
    height:46px;

    box-shadow:
    0 8px 20px rgba(0,0,0,.12);

}

/*====================================================
CONTENT LAYOUT V2
====================================================*/

.content{

    margin-left:255px;

    min-height:100vh;

    background:#f8fafc;

    padding:28px 30px 40px;

    transition:.3s;

}

.content.expanded{

    margin-left:70px;

}

@media(max-width:768px){

    .content{

        margin-left:0;

        padding:80px 15px 25px;

    }

}

/*====================================================
PAGE TITLE
====================================================*/

.page-title{

    display:flex;

    align-items:center;

    gap:12px;

    margin-bottom:22px;

}

.page-title i{

    width:46px;

    height:46px;

    border-radius:14px;

    display:flex;

    justify-content:center;

    align-items:center;

    background:#2563eb;

    color:#fff;

    font-size:20px;

}

.page-title h3{

    margin:0;

    font-size:28px;

    font-weight:700;

    color:#1e293b;

}

/*==================================
TOP HEADER
==================================*/

.page-header{

    background:#ffffff;

    border-radius:18px;

    padding:22px 28px;

    box-shadow:0 8px 25px rgba(15,23,42,.06);

    margin-bottom:25px;

}

.page-header h3{

    margin:0;

    font-weight:700;

    color:#0f172a;

}

.page-header small{

    color:#64748b;

}

.page-header .badge{

    border-radius:12px;

    font-weight:600;

}

/*=================================================
UI-004
Modern Dashboard Components
=================================================*/


/* CARD */

.card{

    background:#fff;

    border:none;

    border-radius:18px;

    box-shadow:0 12px 30px rgba(15,23,42,.06);

    overflow:hidden;

}

.card-header{

    background:#fff;

    border-bottom:1px solid #edf2f7;

    font-weight:700;

}

.card-body{

    padding:22px;

}


/* FORM */

.form-control,

.form-select{

    height:46px;

    border-radius:12px;

    border:1px solid #dbe4ee;

}

.form-control:focus,

.form-select:focus{

    border-color:#2563eb;

    box-shadow:0 0 0 .2rem rgba(37,99,235,.15);

}


/* BUTTON */

.btn{

    border-radius:12px;

    font-weight:600;

    transition:.2s;

}

.btn:hover{

    transform:translateY(-1px);

}


/* TABLE */

.table{

    margin-bottom:0;

}

.table thead{

    background:#f8fafc;

}

.table thead th{

    border:none;

    padding:15px;

    font-weight:700;

    color:#475569;

}

.table tbody td{

    padding:14px;

    vertical-align:middle;

    border-color:#eef2f7;

}

.table tbody tr:hover{

    background:#f8fbff;

}


/* BADGE */

.badge{

    border-radius:8px;

    padding:6px 10px;

    font-weight:600;

}


/* ALERT */

.alert{

    border:none;

    border-radius:14px;

}


/* INPUT GROUP */

.input-group-text{

    border-radius:12px;

}


/* SEARCH */

input[type=search]{

    border-radius:12px;

}

/*=================================================
UI-005
Premium Sidebar
=================================================*/

/* HEADER */

.sidebar-header{

    text-align:center;

    padding-bottom:24px;

    border-bottom:1px solid rgba(255,255,255,.08);

    margin-bottom:24px;

}


/* LOGO */

.sidebar-logo{

    width:72px;

    height:72px;

    margin:auto;

    border-radius:20px;

    display:flex;

    justify-content:center;

    align-items:center;

    background:linear-gradient(135deg,#2563eb,#3b82f6);

    box-shadow:0 15px 30px rgba(37,99,235,.35);

}


.sidebar-logo i{

    color:#fff;

    font-size:34px;

}


/* MENU */

.sidebar-menu{

    display:flex;
    flex-direction:column;
    gap:8px;

    flex:1;

}


/* LINK */

.sidebar a{

    display:flex;

    align-items:center;

    gap:14px;

    padding:13px 16px;

    border-radius:14px;

    color:#cbd5e1;

    text-decoration:none;

    transition:.25s;

}


/* ICON */

.sidebar a i{

    width:24px;

    text-align:center;

    font-size:18px;

}


/* HOVER */

.sidebar a:hover{

    background:rgba(255,255,255,.08);

    color:#fff;

}


/* ACTIVE */

.sidebar a.active{

    background:linear-gradient(
        90deg,
        #2563eb,
        #3b82f6
    );

    color:#fff;

    box-shadow:
        0 10px 20px rgba(37,99,235,.35);

}


/* FOOTER */

.sidebar-footer{

    margin-top:auto;

}


.sidebar-footer hr{

    opacity:.15;

}

/*=================================================
UI-006
Premium Button System
=================================================*/

.btn{

    border:none;

    border-radius:12px;

    font-weight:600;

    transition:.25s ease;

    box-shadow:0 5px 14px rgba(15,23,42,.08);

}

.btn:hover{

    transform:translateY(-2px);

    box-shadow:0 10px 24px rgba(15,23,42,.15);

}

.btn:active{

    transform:scale(.98);

}

/* PRIMARY */

.btn-primary{

    background:linear-gradient(135deg,#2563eb,#3b82f6);

}

/* SUCCESS */

.btn-success{

    background:linear-gradient(135deg,#16a34a,#22c55e);

}

/* WARNING */

.btn-warning{

    background:linear-gradient(135deg,#f59e0b,#fbbf24);

    color:#fff;

}

/* DANGER */

.btn-danger{

    background:linear-gradient(135deg,#dc2626,#ef4444);

}

/* INFO */

.btn-info{

    background:linear-gradient(135deg,#06b6d4,#38bdf8);

    color:#fff;

}

/* SECONDARY */

.btn-secondary{

    background:linear-gradient(135deg,#64748b,#94a3b8);

}

/* SMALL BUTTON */

.btn-sm{

    padding:.42rem .9rem;

    border-radius:10px;

}

/* ICON BUTTON */

.btn i{

    margin-right:6px;

}

/* DASHBOARD */

.dashboard-card{

    overflow:hidden;

    border-radius:18px;

    transition:.25s;

}

.dashboard-card:hover{

    transform:translateY(-4px);

}

.dashboard-icon{

    font-size:55px;

    opacity:.20;

}

.page-title h2{

    font-weight:700;

}

.list-group-item{

    border:none;

    padding:15px 20px;

    transition:.2s;

}

.list-group-item:hover{

    background:#f8fafc;

    padding-left:28px;

}

/*====================================================
FORM PREMIUM
====================================================*/

.form-control,
.form-select{

    border:1px solid #d9e2ec;

    border-radius:12px;

    min-height:46px;

    transition:.25s;

    box-shadow:none;

}

.form-control:hover,
.form-select:hover{

    border-color:#94a3b8;

}

.form-control:focus,
.form-select:focus{

    border-color:#2563eb;

    box-shadow:0 0 0 .2rem rgba(37,99,235,.15);

}

.form-label{

    font-weight:600;

    color:#334155;

    margin-bottom:6px;

}

/*====================================================
BUTTON PREMIUM
====================================================*/

.btn{

    border-radius:12px;

    font-weight:600;

    transition:.2s;

}

.btn:hover{

    transform:translateY(-1px);

}

.btn-primary{

    background:#2563eb;

    border-color:#2563eb;

}

.btn-success{

    background:#16a34a;

    border-color:#16a34a;

}

.btn-warning{

    color:white;

}

.btn-danger{

    background:#dc2626;

}

/*====================================================
CARD PREMIUM
====================================================*/

.card{

    border:none;

    border-radius:18px;

    box-shadow:0 8px 24px rgba(15,23,42,.06);

}

.card-header{

    background:white;

    border-bottom:1px solid #edf2f7;

    font-weight:700;

}

/*====================================================
TABLE PREMIUM
====================================================*/

.table{

    vertical-align:middle;

    margin-bottom:0;

}

.table thead th{

    background:#f8fafc;

    color:#334155;

    font-weight:700;

    border-bottom:2px solid #e2e8f0;

    white-space:nowrap;

}

.table tbody td{

    padding:14px 12px;

}

.table tbody tr{

    transition:.18s;

}

.table tbody tr:hover{

    background:#f1f5f9;

}

.table-responsive{

    border-radius:16px;

    overflow:hidden;

}

/*====================================================
BADGE
====================================================*/

.badge{

    border-radius:8px;

    padding:6px 10px;

    font-weight:600;

}

/*====================================================
ACTION BUTTON
====================================================*/

.btn-sm{

    border-radius:8px;

    min-width:34px;

}

/*====================================================
TOOLBAR
====================================================*/

.toolbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:10px;

    margin-bottom:20px;

}

.toolbar-left{

    display:flex;

    gap:10px;

    flex-wrap:wrap;

}

.toolbar-right{

    display:flex;

    gap:10px;

    flex-wrap:wrap;

}

@media(max-width:768px){

.toolbar{

    flex-direction:column;

    align-items:stretch;

}

.toolbar-left,

.toolbar-right{

    width:100%;

}

.toolbar .btn{

    width:100%;

}

}

.logo-circle{

    width:90px;
    height:90px;

    margin:auto;

    border-radius:18px;

    background:white;

    display:flex;

    justify-content:center;

    align-items:center;

    overflow:hidden;

    box-shadow:0 10px 25px rgba(0,0,0,.15);

}

.logo-circle img{

    width:75px;

    height:75px;

    object-fit:contain;

}