:root {
    --primary-teal: #008080;
    --light-teal: #20b2aa;
    --dark-teal: #006666;
    --white: #ffffff;
    --black: #000000;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
}

/* Sidebar Styles */
#sidebar {
    min-width: 280px;
    max-width: 280px;
    background: #004d4d;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    overflow-y: auto;
    margin-left: 0;
}

#sidebar.active {
    margin-left: -280px;
}

/* Responsive Sidebar */
@media (max-width: 992px) {
    #sidebar {
        margin-left: -280px;
        position: fixed;
    }
    #sidebar.active {
        margin-left: 0;
    }
    
    #content {
        width: 100% !important;
    }
}

#sidebar .sidebar-header {
    padding: 40px 25px;
    background: transparent;
    text-align: center;
}

#sidebar .sidebar-header img {
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

#sidebar .sidebar-header img:hover {
    transform: scale(1.05);
}

#sidebar ul.components {
    padding: 10px 15px;
}

#sidebar ul li {
    margin-bottom: 8px;
}

#sidebar ul li a {
    padding: 14px 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.2s;
    font-weight: 500;
}

#sidebar ul li a i {
    font-size: 1.25rem;
    margin-right: 15px;
    transition: all 0.2s;
}

#sidebar ul li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

#sidebar ul li a:hover i {
    transform: scale(1.2);
}

#sidebar ul li.active > a {
    color: #fff;
    background: var(--primary-teal);
    box-shadow: 0 10px 20px rgba(0, 128, 128, 0.2);
}

#sidebar ul li.active > a i {
    color: #fff;
}

/* Dashboard Enhancements */
.stat-card {
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    border-radius: 20px !important;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.bg-teal-soft { background-color: rgba(0, 128, 128, 0.1); color: var(--primary-teal); }
.bg-success-soft { background-color: rgba(25, 135, 84, 0.1); color: #198754; }
.bg-warning-soft { background-color: rgba(255, 193, 7, 0.1); color: #ffc107; }
.bg-danger-soft { background-color: rgba(220, 53, 69, 0.1); color: #dc3545; }

/* Hamburger Menu Button */
#sidebarCollapse {
    width: 45px;
    height: 45px;
    background: rgba(0, 128, 128, 0.1);
    color: var(--primary-teal);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

#sidebarCollapse:hover {
    background: var(--primary-teal);
    color: #fff;
}

/* Content Styles */
#content {
    flex: 1;
    min-width: 0;
    min-height: 100vh;
    background-color: #f4f7f6;
    transition: all 0.3s;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: var(--white);
    border-bottom: 1px solid rgba(0,0,0,.125);
    font-weight: bold;
}

.btn-teal {
    background-color: var(--primary-teal);
    color: white;
}

.btn-teal:hover {
    background-color: var(--dark-teal);
    color: white;
}

.badge-aman { background-color: #198754; }
.badge-warning { background-color: #ffc107; color: #000; }
.badge-kritis { background-color: #dc3545; }
.badge-stockout { background-color: #212529; }

@media (max-width: 768px) {
    /* Menghapus gaya media query lama yang konflik */
}

.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 900px;
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.login-logo-section {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    border-right: 1px solid rgba(0,0,0,0.05);
}

.login-form-section {
    padding: 60px;
}

.form-control:focus {
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 0.25rem rgba(0, 128, 128, 0.1);
}

.btn-teal {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--dark-teal) 100%);
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-teal:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.3);
}

.input-group-text {
    border-color: #dee2e6;
}

.login-container {
    background: url('https://www.transparenttextures.com/patterns/cubes.png'), linear-gradient(135deg, var(--primary-teal) 0%, var(--dark-teal) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-custom {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
