* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #2c3e50, #34495e);
    color: white;
    padding: 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
}

.sidebar-header i {
    font-size: 28px;
    margin-right: 12px;
    color: #3498db;
}

.sidebar-header span {
    font-size: 20px;
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    flex: 1;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-left-color: #3498db;
}

.sidebar-menu i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.current-date {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.current-date i {
    margin-right: 8px;
}

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

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5eb;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.date-info {
    display: flex;
    align-items: center;
    color: #7f8c8d;
    font-size: 14px;
}

.date-info i {
    margin-right: 8px;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.user-info i {
    font-size: 20px;
    margin-right: 8px;
    color: #3498db;
}

.user-info span {
    font-weight: 500;
}

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-header {
    padding: 18px 25px;
    border-bottom: 1px solid #e1e5eb;
    background-color: #f8f9fa;
}

.card-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.card-body {
    padding: 25px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

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

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 32px;
    color: white;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.stat-icon.green {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.stat-content h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.stat-content p {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.stat-change {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #27ae60;
}

.stat-change i {
    margin-right: 5px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.dashboard-grid .full-width {
    grid-column: 1 / -1;
}

/* Sales Summary */
.sales-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.sales-item {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e1e5eb;
    transition: all 0.3s ease;
}

.sales-item:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.sales-label {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sales-value {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
}

/* Stock List */
.stock-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
    transition: all 0.3s ease;
}

.stock-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.stock-info {
    flex: 1;
}

.stock-name {
    font-weight: 500;
    margin-bottom: 5px;
    color: #2c3e50;
}

.stock-detail {
    font-size: 13px;
    color: #7f8c8d;
}

.stock-status.low {
    color: #e74c3c;
    font-size: 18px;
}

/* Best Sellers */
.best-sellers {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.best-seller-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.best-seller-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.best-seller-rank {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
}

.best-seller-info {
    flex: 1;
}

.best-seller-name {
    font-weight: 500;
    margin-bottom: 5px;
    color: #2c3e50;
}

.best-seller-sales {
    font-size: 13px;
    color: #7f8c8d;
}

/* Recent Transactions */
.recent-transactions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.transaction-info {
    flex: 1;
}

.transaction-id {
    font-weight: 600;
    color: #3498db;
    margin-bottom: 5px;
}

.transaction-date {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 3px;
}

.transaction-cashier {
    font-size: 13px;
    color: #7f8c8d;
}

.transaction-amount {
    font-weight: 600;
    color: #2ecc71;
    font-size: 16px;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Buttons */
.btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-primary i {
    margin-right: 8px;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: #3498db;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-icon:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-icon.btn-danger {
    background-color: #e74c3c;
}

.btn-icon.btn-danger:hover {
    background-color: #c0392b;
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e1e5eb;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

table th,
table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e1e5eb;
}

table th {
    font-weight: 600;
    color: #2c3e50;
    background-color: #f8f9fa;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tr:hover {
    background-color: #f8f9fa;
}

/* Transaksi Page */
.transaksi-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 25px;
}

.money-buttons {
    margin: 25px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e1e5eb;
}

.money-buttons h3 {
    margin-bottom: 20px;
    font-size: 16px;
    color: #2c3e50;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.money-btn {
    padding: 12px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.money-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.money-btn:active {
    transform: translateY(0);
}

.payment-form {
    margin-top: 25px;
}

.payment-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.payment-form input[readonly] {
    background-color: #f8f9fa;
    font-weight: 500;
}

.qty-input {
    width: 70px !important;
    padding: 8px !important;
    text-align: center;
}

/* Empty States */
.empty-cart,
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #95a5a6;
}

.empty-cart i,
.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #bdc3c7;
}

.empty-cart p,
.empty-state p {
    margin: 0;
    font-size: 16px;
}

/* Card Footer */
.card-footer {
    padding: 15px 25px;
    border-top: 1px solid #e1e5eb;
    background-color: #f8f9fa;
}

.view-all {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: #2980b9;
}

.view-all i {
    margin-left: 8px;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    width: 45px;
    height: 45px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background-color: #2980b9;
}

/* Laporan Page */
.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.chart-container {
    position: relative;
    height: 350px;
    margin-top: 20px;
}

.best-sellers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.best-sellers-list .best-seller-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.best-seller-quantity {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 5px;
}

.best-seller-progress {
    margin-top: 12px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e1e5eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .transaksi-container {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .sales-summary {
        grid-template-columns: 1fr;
    }
    
    .payment-row {
        grid-template-columns: 1fr;
    }
    
    .button-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .filter-form {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        font-size: 13px;
    }
    
    table th,
    table td {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .btn-secondary {
        margin-left: 0;
    }
    
    .button-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .money-btn {
        padding: 15px;
        font-size: 16px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .card-header {
        padding: 15px 20px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-10 {
    margin-top: 10px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}