
/* ==============================
   IT ASSET MANAGEMENT SYSTEM
   Professional Admin Dashboard
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f6fa;
    color: #263247;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
    width: 250px;
    background: #172337;
    color: white;
    padding: 25px 18px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.logo {
    padding: 10px;
    margin-bottom: 40px;
}

.logo h2 {
    font-size: 25px;
    letter-spacing: 1px;
}

.logo h2 span {
    color: #38bdf8;
}

.logo p {
    font-size: 12px;
    color: #aab6c8;
    margin-top: 5px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    padding: 14px;
    border-radius: 7px;
    font-size: 14px;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background: #2563eb;
    color: white;
}

.sidebar-footer {
    margin-top: auto;
    padding: 15px 10px;
    border-top: 1px solid #344257;
    color: #cbd5e1;
}

.sidebar-footer p {
    font-size: 13px;
    margin-bottom: 5px;
}

.sidebar-footer small {
    font-size: 11px;
    color: #94a3b8;
}


/* MAIN CONTENT */

.main-content {
    flex: 1;
    min-width: 0;
    padding: 30px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.topbar h2 {
    font-size: 25px;
    margin-bottom: 7px;
}

.topbar p {
    color: #8490a3;
    font-size: 13px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: bold;
}

.user-profile strong {
    display: block;
    font-size: 13px;
}

.user-profile small {
    color: #8490a3;
    font-size: 11px;
}


/* STATISTICS CARDS */

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background: white;
    padding: 23px;
    border-radius: 10px;
    border: 1px solid #e8ecf2;
    box-shadow: 0 3px 12px rgba(0,0,0,0.03);
}

.stat-card p {
    font-size: 13px;
    color: #7b8798;
}

.stat-card h2 {
    font-size: 30px;
    margin: 12px 0;
    color: #1e40af;
}

.stat-card span {
    font-size: 11px;
    color: #94a3b8;
}


/* CONTENT SECTION */

.content-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #e8ecf2;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

.section-header h2 {
    font-size: 19px;
    margin-bottom: 7px;
}

.section-header p {
    color: #8490a3;
    font-size: 12px;
}


/* BUTTONS */

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.primary-btn {
    background: #2563eb;
    color: white;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    transition: 0.3s;
}

.primary-btn:hover {
    background: #1d4ed8;
}

.secondary-btn {
    background: #e9edf4;
    color: #334155;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 13px;
}


/* SEARCH AND FILTER */

.filter-container {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.filter-container input {
    flex: 1;
}

input,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #dce2eb;
    border-radius: 6px;
    outline: none;
    background: white;
    font-size: 13px;
}

input:focus,
select:focus {
    border-color: #2563eb;
}


/* TABLE */

.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

thead {
    background: #f5f7fb;
}

th {
    text-align: left;
    font-size: 11px;
    color: #64748b;
    padding: 15px 12px;
    white-space: nowrap;
}

td {
    padding: 15px 12px;
    font-size: 12px;
    border-bottom: 1px solid #edf0f5;
    white-space: nowrap;
}

tbody tr:hover {
    background: #f8faff;
}


/* STATUS BADGES */

.status {
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
}

.status-active {
    background: #dcfce7;
    color: #15803d;
}

.status-repair {
    background: #fef3c7;
    color: #b45309;
}

.status-stock {
    background: #dbeafe;
    color: #1d4ed8;
}


/* TABLE ACTION BUTTONS */

.action-btn {
    padding: 6px 9px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 4px;
}

.edit-btn {
    background: #dbeafe;
    color: #1d4ed8;
}

.delete-btn {
    background: #fee2e2;
    color: #dc2626;
}


/* EMPTY MESSAGE */

.empty-message {
    text-align: center;
    padding: 35px;
    color: #94a3b8;
    font-size: 13px;
}


/* FORM */

.form-section {
    scroll-margin-top: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    font-size: 12px;
    font-weight: bold;
    color: #475569;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}


/* FOOTER */

.footer {
    text-align: center;
    padding: 20px;
    color: #94a3b8;
    font-size: 11px;
}


/* RESPONSIVE DESIGN */

@media (max-width: 1000px) {

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar {
        width: 210px;
    }

    .main-content {
        padding: 20px;
    }

}

@media (max-width: 650px) {

    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 15px;
    }

    .logo {
        margin-bottom: 15px;
    }

    .sidebar nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .nav-link {
        white-space: nowrap;
        font-size: 12px;
    }

    .sidebar-footer {
        display: none;
    }

    .main-content {
        padding: 15px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    .topbar {
        align-items: flex-start;
        gap: 12px;
    }

    .user-profile {
        display: none;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-container {
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

}
