:root {
    --primary: #e61e25;
    --primary-hover: #c4191f;
    --bg-deep: #0a0b10;
    --bg-main: #12141c;
    --bg-card: #1c1f2b;
    --bg-input: #252836;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --text-muted: #6b7280;
    --border: rgba(255, 255, 255, 0.06);
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --radius-lg: 1rem;
    --radius-md: 0.75rem;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-main);
    border-right: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
    z-index: 1000;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 3rem;
    padding: 0 0.5rem;
}

.sidebar-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, #fa6060 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, #f94d52 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(230, 30, 37, 0.3);
}

/* Main Content Wrapper */
.main {
    margin-left: 280px;
    padding: 3rem;
}

/* Top Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.top-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

/* Card Styling */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

/* Stats Styling */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.stat-item .label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-item .value {
    font-size: 2rem;
    font-weight: 700;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.75rem;
}

label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 500;
    color: var(--text-gray);
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(230, 30, 37, 0.1);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #f94d52 100%);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 30, 37, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-gray);
    border: 1px solid var(--border);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Table Design */
.table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

tr:last-child td {
    border-bottom: none;
}

.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive Fixes */
@media (max-width: 991px) {
    .sidebar {
        width: 80px;
        padding: 2.5rem 0.5rem;
    }

    .sidebar-logo h1,
    .nav-link span {
        display: none;
    }

    .main {
        margin-left: 80px;
        padding: 1.5rem;
    }
}