/* =========================
   GLOBAL RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins', sans-serif;
}

/* =========================
   LOGIN PAGE
========================= */

body.login-page{
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background: linear-gradient(135deg,#1A4C69,#2DCCD4);
    overflow:hidden;
}

.login-container{
    width:1100px;
    height:520px;
    background:#f5f5f7;
    border-radius:35px;
    display:flex;
    overflow:hidden;
    box-shadow:0 20px 50px rgba(0,0,0,0.25);
    padding:25px;
}

/* LEFT SIDE */

.left-side{
    width:50%;
    padding:80px 70px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.left-side h1{
    font-size:48px;
    margin-bottom:20px;
    color:#111;
}

.left-side p{
    color:#666;
    margin-bottom:40px;
    font-size:15px;
}

.input-box{
    width:100%;
    margin-bottom:25px;
}

.input-box input{
    width:100%;
    height:60px;
    border:none;
    outline:none;
    border-radius:14px;
    padding:0 20px;
    font-size:16px;
    background:#fff;
    box-shadow:0 5px 15px rgba(0,0,0,0.03);
}

.forgot{
    text-align:right;
    margin-top:-10px;
    margin-bottom:30px;
}

.forgot a{
    text-decoration:none;
    color:#888;
    font-size:14px;
}

.login-btn{
    width:100%;
    height:60px;
    border:none;
    border-radius:14px;
    background:#1A4C69;
    color:#fff;
    font-size:18px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

.login-btn:hover{
    background:#2DCCD4;
}

.or{
    text-align:center;
    margin:35px 0 25px;
    color:#999;
    position:relative;
}

.or::before,
.or::after{
    content:'';
    position:absolute;
    width:30%;
    height:1px;
    background:#ddd;
    top:50%;
}

.or::before{
    left:0;
}

.or::after{
    right:0;
}

.social-login{
    display:flex;
    gap:20px;
    justify-content:center;
}

.social-login a{
    width:65px;
    height:65px;
    background:#fff;
    border-radius:16px;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    font-size:28px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    transition:0.3s;
}

.social-login a:hover{
    transform:translateY(-5px);
}

/* RIGHT SIDE */

.right-side{
    width:50%;
    border-radius:30px;
    overflow:hidden;
    position:relative;
}

.right-side img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.overlay-text{
    position:absolute;
    bottom:50px;
    left:50px;
    color:#fff;
}

.overlay-text h2{
    font-size:32px;
    font-weight:500;
    margin-bottom:20px;
}

.error{
    background:#ffe5e5;
    color:#c0392b;
    padding:12px;
    border-radius:10px;
    margin-bottom:20px;
}

/* =========================
   DASHBOARD PAGE
========================= */

body.dashboard-page{
    display:flex;
    background:#f4f6f9;
}

/* Sidebar */

.sidebar{
    width:260px;
    height:100vh;
    background:#1e293b;
    color:#fff;
    position:fixed;
    left:0;
    top:0;
    overflow-y:auto;
    transition:0.3s;
}

.sidebar.hide{
    width:70px;
}

.sidebar .logo{
    padding:20px;
    font-size:22px;
    font-weight:600;
    text-align:center;
    border-bottom:1px solid rgba(255,255,255,0.1);
}

.sidebar ul{
    list-style:none;
    padding:20px 0;
}

.sidebar ul li{
    margin:5px 0;
}

.sidebar ul li a{
    color:#fff;
    text-decoration:none;
    padding:14px 20px;
    display:flex;
    align-items:center;
    gap:15px;
    transition:0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active{
    background:#2DCCD4;
}

/* Hide Text */

.sidebar.hide ul li a span,
.sidebar.hide .logo span{
    display:none;
}

/* Main Content */

.main-content{
    margin-left:260px;
    width:100%;
    transition:0.3s;
}

.main-content.full{
    margin-left:70px;
}

/* Topbar */

.topbar{
    height:60px;
    background:#fff;
    display:flex;
    align-items:center;
    padding:0 20px;
    box-shadow:0 2px 5px rgba(0,0,0,0.08);
}

.toggle-btn{
    font-size:22px;
    cursor:pointer;
    color:#1e293b;
}

/* Content */

.content{
    padding:25px;
}

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-top:20px;
}

.card{
    background:#fff;
    padding:25px;
    border-radius:15px;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
    transition:0.3s;
}

.card:hover{
    transform:translateY(-5px);
}

.card i{
    font-size:35px;
    margin-bottom:15px;
    color:#1A4C69;
}

.card h3{
    margin-bottom:10px;
    color:#111827;
}

.card a{
    text-decoration:none;
    color:#1A4C69;
    font-weight:600;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:992px){

    .login-container{
        width:95%;
        height:auto;
        flex-direction:column;
    }

    .left-side,
    .right-side{
        width:100%;
    }

    .right-side{
        height:350px;
        margin-top:20px;
    }

    .left-side{
        padding:50px 30px;
    }
}

@media(max-width:768px){

    .sidebar{
        left:-260px;
        z-index:999;
    }

    .sidebar.show{
        left:0;
    }

    .main-content{
        margin-left:0;
    }

    .main-content.full{
        margin-left:0;
    }
}
/* =========================
   FORM DESIGN
========================= */

.form-container{
    width:100%;
    max-width:500px;
    background:#fff;
    margin:30px auto;
    padding:35px;
    border-radius:18px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
}

.form-title{
    font-size:28px;
    font-weight:600;
    margin-bottom:25px;
    color:#1e293b;
}

.form-group{
    margin-bottom:20px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-size:14px;
    font-weight:500;
    color:#374151;
}

.form-group input,
.form-group select{
    width:100%;
    height:52px;
    border:1px solid #d1d5db;
    border-radius:12px;
    padding:0 15px;
    font-size:15px;
    outline:none;
    transition:0.3s;
    background:#fff;
}

.form-group input:focus,
.form-group select:focus{
    border-color:#2DCCD4;
    box-shadow:0 0 0 4px rgba(45,204,212,0.15);
}

.form-btn{
    width:100%;
    height:55px;
    border:none;
    border-radius:12px;
    background:#1A4C69;
    color:#fff;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

.form-btn:hover{
    background:#2DCCD4;
}

.success-msg{
    background:#dcfce7;
    color:#166534;
    padding:14px;
    border-radius:10px;
    margin-bottom:20px;
    font-size:14px;
}

.error-msg{
    background:#fee2e2;
    color:#b91c1c;
    padding:14px;
    border-radius:10px;
    margin-bottom:20px;
    font-size:14px;
}

/* Mobile */

@media(max-width:768px){

    .form-container{
        padding:25px;
        margin:2px;
    }

    .form-title{
        font-size:24px;
    }
}

/* =========================
   TABLE DESIGN
========================= */

.table-container{
    background:#fff;
    padding:25px;
    border-radius:18px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    margin-top:25px;
    overflow-x:auto;
}

.table-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
    flex-wrap:wrap;
    gap:15px;
}

.table-title{
    font-size:28px;
    font-weight:600;
    color:#1e293b;
}

.add-btn{
    background:#1A4C69;
    color:#fff;
    padding:12px 18px;
    border-radius:10px;
    text-decoration:none;
    font-size:14px;
    font-weight:500;
    transition:0.3s;
}

.add-btn:hover{
    background:#2DCCD4;
}

.custom-table{
    width:100%;
    border-collapse:collapse;
    min-width:700px;
}

.custom-table thead{
    background:#1e293b;
    color:#fff;
}

.custom-table th,
.custom-table td{
    padding:15px;
    text-align:left;
}

.custom-table tbody tr{
    border-bottom:1px solid #e5e7eb;
    transition:0.3s;
}

.custom-table tbody tr:hover{
    background:#f9fafb;
}

.role-badge{
    padding:6px 12px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;
    display:inline-block;
}

.role-admin{
    background:#dbeafe;
    color:#1d4ed8;
}

.role-user{
    background:#dcfce7;
    color:#166534;
}

.action-btn{
    width:36px;
    height:36px;
    border-radius:8px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    margin-right:5px;
    transition:0.3s;
}

.edit-btn{
    background:#fef3c7;
    color:#b45309;
}

.delete-btn{
    background:#fee2e2;
    color:#b91c1c;
}

.action-btn:hover{
    transform:translateY(-3px);
}

@media(max-width:768px){

    .table-title{
        font-size:22px;
    }

    .table-container{
        padding:18px;
    }
}

/* =========================
   DOCUMENT UPLOAD
========================= */

.dynamic-doc-box{
    background:#f9fafb;
    border:1px solid #e5e7eb;
    padding:20px;
    border-radius:14px;
    position:relative;
}

.secondary-btn{
    background:#2DCCD4;
    color:#fff;
    border:none;
    padding:12px 18px;
    border-radius:10px;
    font-size:14px;
    font-weight:500;
    cursor:pointer;
    transition:0.3s;
}

.secondary-btn:hover{
    background:#1A4C69;
}

.remove-btn{
    position:absolute;
    top:15px;
    right:15px;
    width:38px;
    height:38px;
    border:none;
    border-radius:10px;
    background:#fee2e2;
    color:#b91c1c;
    cursor:pointer;
    transition:0.3s;
}

.remove-btn:hover{
    transform:scale(1.05);
}

/* =========================
   CUSTOM FILE UPLOAD
========================= */

.file-upload{
    position:relative;
    width:100%;
}

.file-upload input[type="file"]{
    width:100%;
    padding:7px;
    border:2px dashed #cbd5e1;
    border-radius:14px;
    background:#f8fafc;
    cursor:pointer;
    transition:0.3s;
    font-size:14px;
    color:#475569;
}

.file-upload input[type="file"]:hover{
    border-color:#2DCCD4;
    background:#f0fdff;
}

.file-upload input[type="file"]::file-selector-button{
    background:#1A4C69;
    color:#fff;
    border:none;
    padding:10px 18px;
    border-radius:10px;
    margin-right:15px;
    cursor:pointer;
    transition:0.3s;
    font-weight:500;
}

.file-upload input[type="file"]::file-selector-button:hover{
    background:#2DCCD4;
}

/* =========================
   DOCUMENT TABLE DESIGN
========================= */

.doc-action-group{
    display:flex;
    flex-direction:column;
    gap:10px;
    align-items:center;
}

.doc-view-btn{
    background:#dbeafe;
    color:#1d4ed8;
    padding:8px 14px;
    border-radius:10px;
    text-decoration:none;
    font-size:13px;
    font-weight:500;
    transition:0.3s;
}

.doc-view-btn:hover{
    background:#bfdbfe;
}

.doc-btn-row{
    display:flex;
    gap:8px;
}

.doc-date{
    font-size:11px;
    color:#6b7280;
}

.doc-add-btn{
    background:#dcfce7;
    color:#166534;
    padding:8px 14px;
    border-radius:10px;
    text-decoration:none;
    font-size:13px;
    font-weight:500;
    display:inline-block;
    transition:0.3s;
}

.doc-add-btn:hover{
    background:#bbf7d0;
}

.custom-table td{
    vertical-align:middle;
}/* =========================
   TABLE RESPONSIVE
========================= */

.table-responsive{
    width:100%;
    overflow-x:auto;
}

/* =========================
   PRODUCT NAME
========================= */

.product-name{
    font-weight:600;
    color:#1e293b;
    min-width:180px;
}

/* =========================
   DOCUMENT BOX
========================= */

.doc-box{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
}

/* =========================
   DOCUMENT BUTTONS
========================= */

.doc-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:9px 14px;
    border-radius:10px;
    text-decoration:none;
    font-size:13px;
    font-weight:500;
    transition:0.3s;
}

.view-btn{
    background:#dbeafe;
    color:#1d4ed8;
}

.view-btn:hover{
    background:#bfdbfe;
}

.download-btn{
    background:#dcfce7;
    color:#166534;
}

.download-btn:hover{
    background:#bbf7d0;
}

/* =========================
   DATE
========================= */

.doc-date{
    font-size:11px;
    color:#6b7280;
}

/* =========================
   NO FILE
========================= */

.no-doc{
    color:#9ca3af;
    font-size:13px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:5px;
}

.no-doc i{
    font-size:18px;
}

/* =========================
   TABLE IMPROVEMENT
========================= */

.custom-table th{
    white-space:nowrap;
}

.custom-table td{
    vertical-align:middle;
    min-width:160px;
}
/* 🔹 Report Page */
.content h2 {
    margin-bottom: 15px;
    font-weight: 600;
}

/* 🔍 Filter Form */
form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

form input,
form button,
form a {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
}

form input:focus {
    outline: none;
    border-color: #007bff;
}

/* Filter Button */
form button {
    background: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
}

form button:hover {
    background: #0056b3;
}

/* Reset Link */
form a {
    text-decoration: none;
    background: #6c757d;
    color: #fff;
}

form a:hover {
    background: #545b62;
}

/* 📤 Export Buttons */
a[href*="export_"] {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 8px 14px;
    background: #28a745;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

a[href*="export_pdf"] {
    background: #dc3545;
}

a[href*="export_"]:hover {
    opacity: 0.9;
}

/* 📊 Table */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

.custom-table thead {
    background: #1e293b;
    color: #fff;
}

.custom-table th,
.custom-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.custom-table tbody tr:hover {
    background: #f5f5f5;
}

/* Duration Highlight */
.custom-table td:nth-child(6) {
    font-weight: 600;
    color: #007bff;
}

/* Active Session */
.custom-table td:contains("Active"),
.custom-table td:contains("Running") {
    color: #28a745;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    form {
        flex-direction: column;
    }

    .custom-table {
        font-size: 12px;
    }

    .custom-table th,
    .custom-table td {
        padding: 8px;
    }
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.topbar-logo {
    width: 150px; 
    height: auto;
}
.topbar-logo {
    width: 120px;
    max-width: 100%;
    height: auto;
}