@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f1f5f9;
    display: flex;
    min-height: 100vh;
}

/* Back Link */
.back-link {
    position: fixed;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.back-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

/* Sidebar */
.menu {
    width: 70px;
    min-height: 100vh;
    padding: 20px 15px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: width 0.3s ease;
    position: fixed;
    left: 0;
    top: 0;
}

.menu:hover {
    width: 260px;
}

.profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #3b82f6;
}

.profile h3 {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

ul {
    list-style: none;
    position: relative;
    height: calc(100% - 100px);
}

.menu li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 12px;
    margin: 4px 0;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.menu li a span {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
}

.menu li a:hover,
.menu li a.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), transparent);
    color: #fff;
}

.menu li a.active {
    background: linear-gradient(90deg, #3b82f6, rgba(59, 130, 246, 0.3));
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.menu li a i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.log-out {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.log-out a:hover {
    background: linear-gradient(90deg, #ef4444, rgba(239, 68, 68, 0.3)) !important;
    color: #fff;
}

/* Main Content */
.content {
    flex: 1;
    margin-left: 70px;
    padding: 25px;
    transition: margin 0.3s ease;
}

.title-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.title-info p {
    font-size: 16px;
    font-weight: 600;
    text-transform: capitalize;
}

.title-info i {
    font-size: 20px;
    opacity: 0.8;
}

/* Stats Cards */
.data-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.data-info .box {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.data-info .box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #3b82f6;
}

.data-info .box .data {
    text-align: left;
}

.data-info .box .data p {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.data-info .box .data span {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.data-info .box i {
    font-size: 36px;
    opacity: 0.3;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

th {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

tbody tr {
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

.price,
.count {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.price {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.count {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        padding-bottom: 70px;
        /* Space for bottom nav */
    }

    .menu {
        position: fixed;
        bottom: 0;
        left: 0;
        top: auto;
        width: 100%;
        min-height: auto;
        padding: 10px 15px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: #0f172a;
    }

    .menu:hover {
        width: 100%;
    }

    .profile {
        display: none;
    }

    ul {
        display: flex;
        flex-wrap: nowrap;
        gap: 0;
        height: auto;
        width: 100%;
        justify-content: space-between;
        overflow-x: auto;
    }

    /* Hide scrollbar for cleaner look */
    ul::-webkit-scrollbar {
        display: none;
    }

    .menu li {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .menu li a {
        padding: 8px;
        gap: 0;
        flex-direction: column;
        justify-content: center;
        margin: 0;
    }

    .menu li a i {
        font-size: 18px;
        margin-bottom: 2px;
    }

    .menu li a span {
        display: none;
        /* Hide text, icon only */
    }

    .log-out {
        position: static;
        width: auto;
    }

    .content {
        margin-left: 0;
        padding: 15px;
        margin-top: 50px;
        /* Space for top Back button if needed, but we put back button fixed */
    }

    .back-link {
        top: 15px;
        right: 15px;
        bottom: auto;
        padding: 8px 12px;
        background: rgba(15, 23, 42, 0.8);
    }

    .data-info {
        grid-template-columns: 1fr;
        /* 1 col for stats on mobile */
    }
}