/* Mini-Mart POS System - Modern CSS Styling */

:root {
    --primary-color: #FF6B35;
    --primary-dark: #E55A2B;
    --secondary-color: #2C3E50;
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --danger-color: #E91E63;
    --info-color: #4A90D9;
    --light-bg: #F8F9FA;
    --dark-text: #2C3E50;
    --light-text: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow);
    padding: 0.8rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.brand-text {
    color: var(--light-text);
}

.nav-link {
    color: var(--light-text) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-link i {
    margin-right: 5px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
}

/* Dashboard Cards */
.dashboard-cards {
    margin-bottom: 2rem;
}

.stat-card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.sales-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.profit-card {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.products-card {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.alert-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.stat-card .card-title {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.stat-card .card-text {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 2rem;
}

.section-title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    text-decoration: none;
    color: var(--secondary-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.action-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    color: var(--primary-color);
}

.action-btn i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.action-btn span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    padding: 1rem 1.5rem;
}

.card-title {
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
    color: var(--secondary-color);
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(255, 107, 53, 0.05);
}

/* List Group */
.list-group-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: rgba(255, 107, 53, 0.05);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer p {
    margin-bottom: 0;
}

.backup-status {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .stat-card .card-text {
        font-size: 1.5rem;
    }
    
    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .action-btn {
        padding: 1rem;
    }
    
    .action-btn i {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card,
.action-btn,
.card {
    animation: fadeIn 0.5s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
