:root {
    --primary-color: #0c63e4;
    --primary-dark: #0a58ca;
    --secondary-color: #6c757d;
    --accent-color: #0dcaf0;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --body-bg: #f0f2f5;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --text-primary: #1a1d21;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 20px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.sidebar-logo {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo h4 {
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0;
}

.sidebar-nav {
    padding: 1.5rem 1rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-nav a i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
}

.sidebar-nav a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.sidebar-nav a.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(12, 99, 228, 0.3);
}

.sidebar-nav a.active i {
    transform: scale(1.1);
}

/* Main Content Area Styling */
.main-content-area {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background-color: var(--body-bg);
}

/* Header/Navbar Styling */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2.5rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    z-index: 1000;
}

.main-content {
    padding: 2.5rem;
    overflow-y: auto;
    flex-grow: 1;
    scroll-behavior: smooth;
}

/* Card Styling Improvements */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Status Badges */
.badge {
    padding: 0.5em 1em;
    font-weight: 500;
    border-radius: 20px;
}

.badge-received {
    background-color: #e2e8f0;
    color: #475569;
}

.badge-designing {
    background-color: #dcfce7;
    color: #166534;
}

.badge-manufacturing {
    background-color: #fef9c3;
    color: #854d0e;
}

.badge-ready {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-dispatched {
    background-color: #f3e8ff;
    color: #6b21a8;
}

/* Buttons */
.btn {
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    box-shadow: 0 4px 12px rgba(12, 99, 228, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(12, 99, 228, 0.3);
}

/* Stats Widgets */
.stat-card {
    border: none;
    border-top: 4px solid var(--primary-color);
    box-shadow: var(--shadow-card);
}

.stat-card.border-primary {
    border-top-color: var(--primary-color);
}

.stat-card.border-success {
    border-top-color: var(--success-color);
}

.stat-card.border-warning {
    border-top-color: var(--warning-color);
}

.stat-card.border-info {
    border-top-color: var(--accent-color);
}

.stat-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Login Page Redesign */
.login-container {
    background: #ffffff;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.login-branding {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, #00d2ff 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.login-branding::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4v-4H4v4H0v2h4v4h2v-4h4v-2H6zm30 0v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    animation: rotate-bg 100s linear infinite;
}

@keyframes rotate-bg {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.login-form-side {
    width: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    background: white;
    z-index: 10;
}

@media (max-width: 992px) {
    .login-branding {
        display: none;
    }

    .login-form-side {
        width: 100%;
    }

    /* Mobile Sidebar */
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: -280px;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease;
    }

    .sidebar-open .sidebar {
        left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }

    .sidebar-open .sidebar-overlay {
        display: block;
    }

    .main-header {
        padding: 1rem 1.5rem;
    }

    .main-content {
        padding: 1.5rem;
    }
}