/* ============================================
   style.css - Complete Stylesheet
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
}

/* Navigation Bar */
/* ============================================
   HEADER & NAVIGATION
============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f4f6f9;
    color: #333;
}

.navbar {
    background: #030303;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

.logo span {
    color: #f59e0b;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    transition: 0.3s;
    font-size: 14px;
}

.nav-links a:hover {
    background: #334155;
}

.user-info {
    background: #334155;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
}

.logout-btn {
    background: #dc2626;
}

.logout-btn:hover {
    background: #b91c1c !important;
}

/* Hamburger Menu */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Container */

.container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
}

/* Alerts */

.alert {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-weight: 500;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #16a34a;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

/* ============================================
   MOBILE RESPONSIVE
============================================ */

@media (max-width: 992px) {

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #1e293b;
        padding: 20px;
        gap: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
    }

    .user-info {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {

    .navbar {
        padding: 15px;
    }

    .logo {
        font-size: 20px;
    }

    .container {
        padding: 15px;
    }

    .user-info {
        font-size: 12px;
    }
}





/* Container */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card h2 {
    color: #1a1a2e;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Buttons */
button, .btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

button:hover, .btn:hover {
    background: #5a67d8;
}

.btn-success {
    background: #48bb78;
}

.btn-success:hover {
    background: #38a169;
}

.btn-danger {
    background: #e53e3e;
}

.btn-danger:hover {
    background: #c53030;
}

.btn-small {
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

tr:hover {
    background: #f7fafc;
}

/* Stock Status Colors */
.stock-low {
    color: #e53e3e;
    font-weight: bold;
}

.stock-medium {
    color: #ed8936;
}

.stock-good {
    color: #48bb78;
}

.text-success {
    color: #48bb78;
    font-weight: bold;
}

.text-danger {
    color: #e53e3e;
    font-weight: bold;
}

.text-muted {
    color: #a0aec0;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}



/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #3b4786 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.stat-card h3 {
    font-size: 0.9rem;
    opacity: 0.9;
}

.stat-card .number {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

/* Two Column Layout */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Inline Forms */
.inline-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.inline-form input {
    width: auto;
    flex: 1;
}

.inline-form.small input {
    width: 100px;
}



/* Stats Mini for Analytics */
.stats-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-mini {
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
}

.stat-mini.green {
    background: #c6f6d5;
}

.stat-mini.red {
    background: #fed7d7;
}

.big-number {
    font-size: 2rem;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .two-columns {
        grid-template-columns: 1fr;
    }
    
       
    .container {
        padding: 0 1rem;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 1.5rem;
    color: #718096;
    border-top: 1px solid #e2e8f0;
    margin-top: 2rem;
}