/*
==========================================================
FILE: assets/css/style.css
PURPOSE:
- Professional portal UI
- Responsive dashboard
- Common cards, tables, buttons, sidebar, forms
==========================================================
*/

*{
    box-sizing:border-box;
}

body{
    margin:0;
    padding:0;
    background:#f4f6f9;
    color:#111827;
    font-family:'Poppins',Arial,sans-serif;
    font-size:14px;
}

a{
    text-decoration:none;
}

img{
    max-width:100%;
}

/* ========================================================
TOP NAVBAR
======================================================== */

.top-navbar{
    background:#111827;
    padding:12px 20px;
    box-shadow:0 2px 12px rgba(0,0,0,0.12);
    position:sticky;
    top:0;
    z-index:1000;
}

.logo-text{
    color:#ffffff;
    font-size:20px;
    font-weight:700;
    text-decoration:none;
}

.logo-text:hover{
    color:#ffffff;
}

.user-box{
    color:#ffffff;
    font-size:14px;
}

.wallet-badge{
    background:#16a34a;
    color:#ffffff;
    padding:6px 14px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;
}

/* ========================================================
LAYOUT
======================================================== */

.page-container{
    padding:24px;
    min-height:calc(100vh - 70px);
}

.container-fluid{
    max-width:100%;
}

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

.sidebar-area{
    min-height:100vh;
    background:#111827;
    padding:20px 10px;
}

.sidebar-user-box{
    background:#1f2937;
    padding:16px;
    border-radius:14px;
    margin-bottom:20px;
    text-align:center;
}

.sidebar-user-name{
    color:#ffffff;
    font-weight:600;
    font-size:15px;
}

.sidebar-user-role{
    color:#9ca3af;
    font-size:12px;
    margin-top:4px;
}

.sidebar-menu .nav-link{
    color:#d1d5db;
    padding:12px 15px;
    border-radius:10px;
    margin-bottom:6px;
    transition:0.25s;
    font-size:14px;
}

.sidebar-menu .nav-link:hover,
.sidebar-menu .nav-link.active{
    background:#2563eb;
    color:#ffffff;
}

/* ========================================================
CARDS
======================================================== */

.card{
    border:none;
    border-radius:16px;
    background:#ffffff;
    box-shadow:0 4px 18px rgba(15,23,42,0.06);
}

.card h3,
.card h4,
.card h5,
.card h6{
    font-weight:600;
}

/* ========================================================
FORMS
======================================================== */

.form-label{
    font-weight:500;
    color:#374151;
}

.form-control,
.form-select{
    border-radius:10px;
    border:1px solid #d1d5db;
    padding:10px 12px;
    font-size:14px;
}

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

textarea.form-control{
    resize:vertical;
}

/* ========================================================
BUTTONS
======================================================== */

.btn{
    border-radius:10px;
    font-weight:500;
    padding:9px 16px;
}

.btn-sm{
    padding:6px 10px;
    border-radius:8px;
    font-size:12px;
}

.btn-primary{
    background:#2563eb;
    border-color:#2563eb;
}

.btn-primary:hover{
    background:#1d4ed8;
    border-color:#1d4ed8;
}

.btn-success{
    background:#16a34a;
    border-color:#16a34a;
}

.btn-success:hover{
    background:#15803d;
    border-color:#15803d;
}

.btn-danger{
    background:#dc2626;
    border-color:#dc2626;
}

.btn-danger:hover{
    background:#b91c1c;
    border-color:#b91c1c;
}

.btn-warning{
    background:#f59e0b;
    border-color:#f59e0b;
    color:#111827;
}

.btn-warning:hover{
    background:#d97706;
    border-color:#d97706;
    color:#111827;
}

/* ========================================================
TABLES
======================================================== */

.table{
    margin-bottom:0;
    vertical-align:middle;
}

.table thead th{
    background:#f8fafc;
    color:#374151;
    font-weight:600;
    border-bottom:1px solid #e5e7eb;
    white-space:nowrap;
}

.table td,
.table th{
    padding:12px;
    border-color:#e5e7eb;
}

.table-responsive{
    border-radius:12px;
}

/* ========================================================
BADGES
======================================================== */

.badge{
    padding:7px 10px;
    border-radius:20px;
    font-weight:600;
    font-size:12px;
}

/* ========================================================
ALERTS
======================================================== */

.alert{
    border:none;
    border-radius:12px;
    padding:14px 16px;
    font-size:14px;
}

/* ========================================================
SERVICE CARDS
======================================================== */

.service-card{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:22px;
    box-shadow:0 4px 16px rgba(15,23,42,0.05);
    transition:0.25s;
}

.service-card:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 30px rgba(15,23,42,0.10);
}

.price-box{
    background:#f8fafc;
    border-radius:14px;
    padding:15px;
}

.service-info{
    background:#ffffff;
    border:1px dashed #d1d5db;
    border-radius:14px;
    padding:15px;
}

/* ========================================================
LOGIN / LANDING
======================================================== */

.login-icon{
    width:72px;
    height:72px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    font-weight:700;
    margin:0 auto;
}

.feature-box{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:18px;
    height:100%;
}

/* ========================================================
MODAL
======================================================== */

.modal-content{
    border:none;
    border-radius:16px;
}

.modal-header{
    border-bottom:1px solid #e5e7eb;
}

.modal-footer{
    border-top:1px solid #e5e7eb;
}

/* ========================================================
UTILITY
======================================================== */

.text-small{
    font-size:12px;
}

.fw-600{
    font-weight:600;
}

.rounded-xl{
    border-radius:16px;
}

.shadow-soft{
    box-shadow:0 4px 18px rgba(15,23,42,0.06);
}

/* ========================================================
RESPONSIVE
======================================================== */

@media(max-width:768px){

    .top-navbar .d-flex{
        flex-wrap:wrap;
        gap:10px;
    }

    .logo-text{
        font-size:16px;
    }

    .user-box{
        font-size:12px;
    }

    .wallet-badge{
        font-size:12px;
        padding:5px 10px;
    }

    .sidebar-area{
        min-height:auto;
        padding:12px;
    }

    .page-container{
        padding:15px;
    }

    .card{
        border-radius:14px;
    }

    .table{
        font-size:13px;
    }

    .btn{
        width:auto;
    }
}

@media(max-width:576px){

    h1{
        font-size:28px;
    }

    h2{
        font-size:24px;
    }

    h3{
        font-size:22px;
    }

    .d-flex.justify-content-between{
        flex-direction:column;
        align-items:flex-start !important;
        gap:12px;
    }

    .btn{
        width:100%;
    }

    .table-responsive{
        font-size:12px;
    }
}