/* Reset dan Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    /* Theme colors - Dark Theme */
    --bg-color: #121212;
    --bg-hover: #1e1e1e;
    --card-bg: #1a1a1a;
    --border-color: #2c2c2c;
    --text-color: #e1e1e1;
    --text-secondary: #a1a1a1;
    --light-text: #ffffff;
    --primary-color: #7b3bfb;
    --primary-hover: #6429e8;
    --primary-light: rgba(123, 59, 251, 0.15);
    --success-color: #42ba96;
    --danger-color: #ff6b6b;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-default: all 0.3s ease;
}

/* Global Styles */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    font-weight: 400;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* Layout Components */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.content-container {
    flex-grow: 1;
    margin-left: 250px;
    transition: var(--transition-default);
    width: calc(100% - 250px);
    position: relative;
}

.content {
    padding: 25px;
    min-height: calc(100vh - 60px);
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== HEADER STYLES - IMPROVED ===== */
.header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    align-items: center;
}

.sidebar-toggle {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-hover);
    border: 1px solid var(--border-color);
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.sidebar-toggle:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Logo Styles - Improved */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
}

.logo-primary {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #8f5bfd, #6429e8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-secondary {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.logo-version {
    font-size: 10px;
    background: linear-gradient(135deg, #8f5bfd, #6429e8);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    font-weight: 600;
}

/* User Info Styles - Improved */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-hover);
    transition: var(--transition-fast);
}

.user-info:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8f5bfd, #6429e8);
    color: white;
    font-weight: 600;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-icon {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 5px;
    transition: var(--transition-fast);
}

.user-info:hover .dropdown-icon {
    color: var(--primary-color);
    transform: rotate(180deg);
}

/* User Dropdown Menu - New */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    width: 180px;
    z-index: 200;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.user-info:hover .user-dropdown,
.user-info.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
    font-size: 14px;
    text-decoration: none;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item i {
    color: var(--text-secondary);
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

/* ===== SIDEBAR STYLES - IMPROVED ===== */
.sidebar {
    width: 250px;
    height: 100vh;
    background-color: var(--bg-color);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    transition: var(--transition-default);
    overflow-y: auto;
    padding-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.sidebar-header {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
}

.app-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #8f5bfd, #6429e8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.app-title {
    margin-left: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.sidebar-section {
    margin-top: 20px;
    padding: 0 15px;
}

.section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    padding: 0 10px;
    margin-bottom: 10px;
}

.sidebar-content {
    padding: 10px 0;
}

.menu {
    width: 100%;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    list-style: none;
    margin-bottom: 5px;
    position: relative;
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #8f5bfd, #6429e8);
    border-radius: 0 4px 4px 0;
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
    text-decoration: none;
}

.menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    font-size: 16px;
    margin-right: 10px;
}

.menu-text {
    font-size: 14px;
}

.menu-item:hover a {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.menu-item.active a {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

.menu-item.active .menu-icon {
    color: var(--primary-color);
}

/* ===== DASHBOARD STYLES - NEW ===== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--light-text);
    letter-spacing: -0.5px;
}

.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition-default);
    box-shadow: var(--shadow-sm);
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 20px;
}

.summary-title {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 5px;
}

.summary-value {
    color: var(--light-text);
    font-size: 24px;
    font-weight: 700;
}

.dashboard-charts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 992px) {
    .dashboard-charts {
        grid-template-columns: 2fr 1fr;
    }
}

.chart-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition-default);
    box-shadow: var(--shadow-sm);
}

.chart-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

/* ===== LOGIN/REGISTER STYLES - NEW ===== */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--bg-color);
    background-image: linear-gradient(45deg, rgba(123, 59, 251, 0.05), rgba(100, 41, 232, 0.1));
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background-color: rgba(26, 26, 26, 0.95);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease-in-out;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.login-header {
    padding: 30px 25px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(to right, rgba(123, 59, 251, 0.05), rgba(100, 41, 232, 0.1));
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #8f5bfd, #6429e8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 0;
}

.login-form {
    padding: 25px;
}

.login-form .form-field {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
}

.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) inset;
    transition: all 0.2s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(123, 59, 251, 0.2);
}

.login-form input.has-error {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.login-form .error-message {
    color: var(--danger-color);
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.login-form .password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.login-form .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.login-form .toggle-password:hover {
    color: var(--primary-color);
}

.login-form .toggle-password:focus {
    outline: none;
}

.form-action {
    margin-top: 30px;
    margin-bottom: 20px;
}

.form-action .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, #8f5bfd, #6429e8);
    color: white;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(100, 41, 232, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-action .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(100, 41, 232, 0.3);
    background: linear-gradient(135deg, #9d6eff, #7339fa);
}

.form-action .btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(100, 41, 232, 0.3);
}

.login-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
}

.login-footer a {
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.login-footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.alert-message {
    padding: 12px 15px;
    margin: 20px 25px 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-message::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 16px;
}

.alert-message.success {
    background-color: rgba(66, 186, 150, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(66, 186, 150, 0.2);
}

.alert-message.success::before {
    content: "\f058"; /* check-circle */
}

.alert-message.error {
    background-color: rgba(255, 107, 107, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.alert-message.error::before {
    content: "\f057"; /* times-circle */
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles for login/register */
@media (max-width: 576px) {
    .login-card {
        max-width: 100%;
    }
    
    .login-header {
        padding: 25px 20px 15px;
    }
    
    .login-form {
        padding: 20px;
    }
    
    .login-form input[type="text"],
    .login-form input[type="email"],
    .login-form input[type="password"] {
        padding: 12px 14px;
    }
    
    .form-action .btn-primary {
        padding: 12px;
    }
    
    .login-form .form-field {
        margin-bottom: 15px;
    }
}

/* ===== STORE STYLES - IMPROVED ===== */
.store-header {
    margin-bottom: 30px;
}

.store-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.store-description {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 700px;
    margin-bottom: 25px;
}

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #8f5bfd, #6429e8);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.action-btn i {
    font-size: 16px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    opacity: 0.95;
}

/* Products Grid - Improved */
.products-container {
    margin-top: 20px;
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border-color);
    transition: var(--transition-default);
    min-height: 200px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.product-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background-color: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.product-info {
    flex-grow: 1;
    margin-bottom: 20px;
}

.product-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--light-text);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 15px;
}

.product-stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-stat i {
    color: var(--primary-color);
    font-size: 15px;
}

.product-link {
    padding: 10px 15px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    opacity: 0.9;
    transform: translateY(0);
    border: 1px solid rgba(123, 59, 251, 0.2);
}

.product-card:hover .product-link {
    opacity: 1;
    transform: translateY(0);
    background-color: var(--primary-color);
    color: var(--light-text);
    border-color: var(--primary-color);
}

/* Product Detail View */
.product-detail-container {
    margin-bottom: 40px;
}

.product-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.product-detail-icon {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background-color: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.product-detail-info {
    flex-grow: 1;
}

.product-detail-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--light-text);
    line-height: 1.3;
}

.product-detail-description {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-stats-detail {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition-default);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--light-text);
}

.stock-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stock-section-title i {
    color: var(--primary-color);
}

.stock-items-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    min-height: 200px;
}

/* Stock Item Card - Improved */
.stock-item-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    height: auto;
    width: 100%;
    opacity: 1;
    transform: translateY(0);
}

.stock-item-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.stock-item-card.fade-in {
    animation: fadeIn 0.3s ease-in-out forwards;
}

.hide-item {
    display: none !important;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stock-item-header {
    padding: 16px;
    background-color: var(--bg-hover);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.stock-item-title {
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stock-item-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px;
    background-color: var(--bg-hover);
    margin-top: auto;
}

/* Generic Card Styles - Updated */
.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-default);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(123, 59, 251, 0.2);
}

.card-body {
    padding: 25px;
}

.card-header {
    padding: 18px 25px;
    background-color: var(--bg-hover);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

/* Button Styles - Updated */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    gap: 8px;
}

.btn i {
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #8f5bfd, #6429e8);
    color: var(--light-text);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    opacity: 0.95;
}

.btn-secondary {
    background-color: var(--bg-hover);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-color);
    transform: translateY(-2px);
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--light-text);
}

.btn-danger:hover {
    background-color: #e05151;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Action Buttons - Updated */
.btn-action {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
    box-shadow: var(--shadow-sm);
    font-size: 16px;
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-action.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-action.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-action.btn-danger {
    background-color: var(--danger-color);
    color: var(--light-text);
}

.btn-action.btn-danger:hover {
    background-color: #e05151;
}

/* Form Styles - Updated & Enhanced */
.form-group {
    margin-bottom: 24px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label, .form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control, .form-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition-fast);
    height: 50px;
}

.form-text, .text-muted {
    font-size: 12px;
    margin-top: 6px;
    color: var(--text-secondary) !important;
}

/* Input Group Styling - Improved */
.input-group {
    display: flex;
    position: relative;
    width: 100%;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

.input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: var(--text-color);
    text-align: center;
    white-space: nowrap;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    border-right: none;
    min-width: 45px;
    height: 50px;
}

.input-group > .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background-color: var(--bg-color);
    padding-left: 10px;
    padding-right: 16px;
    height: 50px;
}

.input-group-text + .form-control {
    border-left: none;
}

.input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(123, 59, 251, 0.2);
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
}

.input-group:focus-within .form-control {
    border-color: var(--primary-color);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
    height: auto;
    padding: 16px;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(123, 59, 251, 0.2);
}

.form-control.has-error, .form-field input.has-error {
    border-color: var(--danger-color);
}

.invalid-feedback, .error-message {
    font-size: 12px;
    color: var(--danger-color);
    margin-top: 5px;
    display: block;
}

/* Price Input Styling - Unified */
.price-input {
    position: relative;
    margin-bottom: 12px;
}

.price-input .form-control {
    background-color: var(--bg-hover);
    border: 1px solid #333;
    color: var(--light-text);
    font-weight: 500;
    height: 50px;
    font-size: 16px;
    border-radius: 8px;
    text-align: right;
    padding-right: 16px;
    padding-left: 46px; /* Space for the Rp prefix */
    width: 100%;
}

.price-input::before {
    content: "Rp";
    position: absolute;
    left: 0;
    top: 0;
    height: 50px;
    width: 46px;
    background-color: var(--bg-hover);
    border-right: 1px solid #333;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 16px;
    z-index: 2;
}

.price-input:focus-within::before {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.price-input:focus-within .form-control {
    background-color: var(--bg-color);
    border-color: var(--primary-color);
}

/* Modal Styling - Improved */
.modal-dialog {
    max-width: 500px;
}

.modal-content {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    color: var(--text-color);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
    background-color: rgba(123, 59, 251, 0.05);
}

.modal-title {
    font-weight: 600;
    font-size: 18px;
    background: linear-gradient(90deg, var(--primary-color), #9969FF);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-close-white {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 50%;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.btn-close-white:hover {
    opacity: 1;
    transform: rotate(90deg);
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 16px 24px;
    background-color: rgba(0, 0, 0, 0.2);
}

/* Form styles for modal */
.modal .form-control {
    background-color: var(--bg-hover);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 5px;
}

.modal .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(123, 59, 251, 0.2);
    background-color: var(--bg-color);
}

.modal .form-text {
    color: var(--text-secondary);
    font-size: 12px;
    display: block;
    margin-top: 6px;
}

/* Custom file input - Enhanced */
.custom-file-input-container {
    position: relative;
}

.custom-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.custom-file-label {
    background-color: var(--bg-hover);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 1;
    height: 50px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.custom-file-label::before {
    content: "\f0c6";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 16px;
}

.custom-file-input-container:hover .custom-file-label {
    border-color: var(--primary-color);
    color: var(--text-color);
    background-color: rgba(123, 59, 251, 0.05);
}

/* Icon preview - Enhanced */
.icon-preview-container {
    display: none;
    margin-top: 15px;
    text-align: center;
}

.icon-preview {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-hover);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
}

.icon-preview img {
    max-width: 100%;
    max-height: 100%;
}

/* Item status styling - Enhanced */
.item-status {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-ready {
    background-color: rgba(66, 186, 150, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(66, 186, 150, 0.2);
}

.status-sold {
    background-color: rgba(255, 107, 107, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

/* Detail row styling - Enhanced */
.detail-row {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    width: 120px;
    flex-shrink: 0;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
}

.detail-value {
    flex-grow: 1;
    color: var(--light-text);
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    font-size: 15px;
}

/* Back link styling - Enhanced */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    transition: var(--transition-fast);
    background-color: var(--bg-hover);
    border: 1px solid var(--border-color);
    text-decoration: none;
    margin-bottom: 20px;
}

.back-link:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive Styles - Updated */
@media (max-width: 992px) {
    .content {
        padding: 20px;
    }
    
    .product-detail-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .product-detail-icon {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 240px;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .content-container {
        margin-left: 0;
        width: 100%;
    }
    
    .header {
        padding: 0 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .product-card {
        padding: 20px;
    }
    
    .product-icon {
        width: 60px;
        height: 60px;
    }
    
    .product-name {
        font-size: 18px;
    }
    
    .product-stats {
        font-size: 12px;
    }
    
    .stock-items-grid {
        grid-template-columns: 1fr;
    }
    
    .product-stats-detail {
        grid-template-columns: 1fr 1fr;
    }
    
    .auth-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 10px;
    }
    
    .user-info {
        padding: 5px 10px;
    }
    
    .user-name {
        display: none;
    }
    
    .product-stats-detail {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        padding: 15px;
    }
    
    .content {
        padding: 15px;
    }
    
    .dashboard-summary {
        grid-template-columns: 1fr;
    }
    
    .auth-header, .auth-body {
        padding: 20px;
    }
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 30px 20px;
    margin: 20px auto;
    max-width: 500px;
}

.empty-state .empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--bg-hover);
    color: var(--primary-color);
    font-size: 32px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state p {
    color: var(--light-text);
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

.empty-message {
    color: var(--light-text) !important;
    font-size: 16px;
    font-weight: 500;
}

.empty-state .btn {
    margin-top: 10px;
}

/* Welcome message styling */
.welcome-message {
    color: var(--light-text);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.activity-empty-text {
    color: var(--light-text);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    padding: 20px;
}

/* Password actions - horizontal layout */
.password-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-left: 10px;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.password-text {
    font-family: monospace;
    letter-spacing: 1px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.password-text.masked {
    font-family: inherit;
}

/* Tab Navigation Styling */
.tab-navigation {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none;
    position: relative;
}

.tab-navigation::-webkit-scrollbar {
    display: none;
}

.tab-navigation .tab-item {
    padding: 10px 24px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
}

.tab-navigation .tab-item:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-navigation .tab-item.active {
    color: var(--primary-color);
}

.tab-navigation .tab-item.active:after {
    transform: scaleX(1);
}

.tab-navigation .tab-item:hover {
    color: var(--primary-color);
}

.tab-navigation .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background-color: var(--bg-hover);
    border-radius: 10px;
    font-size: 12px;
    margin-left: 5px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tab-navigation .tab-item.active .tab-count {
    background-color: var(--primary-color);
    color: white;
}

/* Item status badges */
.item-status {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.status-ready {
    background-color: rgba(66, 186, 150, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(66, 186, 150, 0.2);
}

.status-sold {
    background-color: rgba(255, 107, 107, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

/* Tab Empty State Message - Centered & Enhanced */
.tab-empty-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px;
    padding: 30px;
    margin: 20px auto;
    text-align: center;
    background-color: rgba(123, 59, 251, 0.03);
    border-radius: 12px;
    border: 1px dashed rgba(123, 59, 251, 0.2);
}

.tab-empty-message .empty-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    opacity: 0.8;
    color: var(--primary-color);
}

.tab-empty-message p {
    margin: 0;
    color: var(--text-color);
    font-weight: 500;
    max-width: 300px;
    line-height: 1.5;
}

/* Additional fix for empty message in tabs to ensure it's centered */
.stock-items-grid .tab-empty-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    min-width: 300px;
    max-width: 500px;
    width: 80%;
    height: auto;
    z-index: 1;
}

/* ===== CUSTOM INCOME CARD STYLES ===== */
.income-card {
    background: linear-gradient(135deg, #7b3bfb 0%, #6429e8 100%);
    border-color: #7b3bfb;
    position: relative;
    overflow: hidden;
}

.income-card .summary-title {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.income-card .summary-value {
    color: #ffffff;
    font-weight: 700;
    font-size: 22px;
}

.income-card .summary-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.income-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(123, 59, 251, 0.3);
}

.income-card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.income-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

/* Responsive Adjustments for Dashboard Summary */
@media (max-width: 1200px) {
    .dashboard-summary {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .income-card {
        grid-column: span 3;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .dashboard-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .income-card {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .dashboard-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .income-card {
        grid-column: span 1;
    }
}

/* Income Stat Item Style */
.income-stat {
    background: linear-gradient(135deg, #7b3bfb 0%, #6429e8 100%);
    border-color: #7b3bfb;
    color: white;
    position: relative;
    overflow: hidden;
}

.income-stat .stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.income-stat .stat-value {
    color: #ffffff;
    font-weight: 700;
}

.income-stat:before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.income-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(123, 59, 251, 0.3);
}

/* Tab transition animation */
.tab-item {
    position: relative;
    overflow: hidden;
}

.tab-item::after {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form radio inputs - Enhanced dan dirapihkan */
.input-selection {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    padding: 5px 0;
    align-items: center;
    background-color: rgba(26, 26, 26, 0.6);
    border-radius: 8px;
    padding: 8px 12px;
}

.form-check-inline {
    display: flex;
    align-items: center;
    margin-right: 0;
    position: relative;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.form-check-inline:hover {
    background-color: rgba(123, 59, 251, 0.08);
}

.form-check-input {
    margin-top: 0;
    margin-right: 8px;
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(123, 59, 251, 0.5);
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background-color: rgba(26, 26, 26, 0.7);
}

.form-check-input:checked {
    border-color: var(--primary-color);
    background-color: rgba(123, 59, 251, 0.15);
    border-width: 2px;
}

.form-check-input:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(123, 59, 251, 0.5);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(123, 59, 251, 0.2);
}

.form-check-label {
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    user-select: none;
    transition: all 0.2s ease;
    color: var(--text-color);
}

.form-check-input:checked + .form-check-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* F2A Link field styling */
#f2a_link {
    font-family: monospace;
    letter-spacing: 1px;
    font-size: 14px;
    background-color: var(--bg-hover);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px !important;
    height: 42px;
    padding: 10px 15px;
}

/* Copy and open buttons for F2A Link */
.btn-outline-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-hover);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-left: none;
    transition: all 0.2s ease;
    height: 42px;
    width: 42px;
    padding: 0;
    font-size: 16px;
}

.btn-outline-secondary:first-of-type {
    border-radius: 0;
}

.btn-outline-secondary:last-of-type {
    border-radius: 0 8px 8px 0;
}

.btn-outline-secondary:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* Input group for F2A Link */
#f2a_link + .input-group-append {
    display: flex;
}

.input-group-append .btn {
    border-radius: 0;
}

.input-group-append .btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Efek aktif untuk tombol */
.btn-outline-secondary:active {
    background-color: var(--primary-color);
    color: white;
}

/* Styling untuk tombol yang aktif (copy success) */
.btn-outline-secondary.copy-success {
    background-color: rgba(66, 186, 150, 0.2);
    color: var(--success-color);
    border-color: var(--success-color);
}

/* Membuat styling 'required' label */
.form-label .text-danger {
    color: var(--danger-color) !important;
    font-weight: bold;
    margin-left: 3px;
}

/* Pesan error styling */
.error-message, .invalid-feedback {
    color: var(--danger-color);
    font-size: 12px;
    margin-top: 5px;
}