/* =========================================================
   Asset Manager Stylesheet
   File: /assets/css/style.css
========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f3f4f6;
    color: #111827;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-label input {
    width: auto;
    margin: 0;
}


/* =========================================================
   Sidebar
========================================================= */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    background: #111827;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar h2 {
    color: #ffffff;
    text-align: center;
    padding: 25px 15px;
    margin: 0;
    font-size: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar a {
    display: block;
    padding: 15px 20px;
    color: #d1d5db;
    text-decoration: none;
    transition: background 0.2s ease;
}

.sidebar a:hover {
    background: #1f2937;
    color: #ffffff;
}

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

.content {
    margin-left: 250px;
    padding: 30px;
    min-height: 100vh;
}

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

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    margin: 0;
    font-size: 32px;
    color: #111827;
}

.page-header p {
    margin-top: 8px;
    color: #6b7280;
    font-size: 15px;
}

/* =========================================================
   Dashboard
========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.dashboard-number {
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 15px;
    color: #111827;
}

.dashboard-label {
    font-size: 17px;
    color: #6b7280;
    font-weight: 600;
}

/* =========================================================
   Login / 2FA Boxes
========================================================= */

.login-box,
.box {
    width: 400px;
    max-width: 95%;
    margin: 100px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.login-box h2,
.box h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 28px;
    color: #111827;
}

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

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    font-size: 15px;
    color: #111827;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #111827;
}

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

button,
.btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 6px;
    background: #111827;
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
}

button:hover,
.btn:hover {
    background: #1f2937;
}

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

.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* =========================================================
   Login Links
========================================================= */

.links {
    margin-top: 15px;
    text-align: center;
}

.links a {
    color: #111827;
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

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

.table-wrapper {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background: #111827;
    color: #ffffff;
}

table th,
table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

table tr:hover {
    background: #f9fafb;
}

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

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

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

@media (max-width: 900px) {

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .content {
        margin-left: 0;
        padding: 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .login-box,
    .box {
        margin: 40px auto;
    }
}

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

.footer {
    margin-left: 250px;
    padding: 20px 30px;
    margin-top: 40px;
    color: #6b7280;
    font-size: 14px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

@media (max-width: 900px) {
    .footer {
        margin-left: 0;
    }
}

/* =========================================================
   Sidebar Submenu
========================================================= */

.submenu {
    background: #0b1220;
}

.submenu a {
    padding-left: 60px;
    font-size: 14px;
}

/* =========================================================
   Barcode / Label Printing
========================================================= */

.barcode-preview {
    margin-top: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.barcode-preview svg {
    max-width: 100%;
    height: auto;
}

.print-label {
    width: auto;
    display: inline-block;
    margin-top: 15px;
}

.print-area {
    width: 89mm;
    height: 36mm;
    padding: 4mm;
    text-align: center;
    font-family: Arial, sans-serif;
}

.print-area .asset-title {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 2mm;
}

.print-area svg {
    max-width: 80mm;
}

@media print {

    body * {
        visibility: hidden;
    }

    .print-area,
    .print-area * {
        visibility: visible;
    }

    .print-area {
        position: absolute;
        left: 0;
        top: 0;
    }

    @page {
        size: 89mm 36mm;
        margin: 2mm;
    }
}