/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #2e7d32;
    /* Emerald 700 */
    --primary-gradient: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    --secondary-color: #e8f5e9;
    /* Green 50 */
    --accent-color: #1b5e20;
    --text-color: #2c3e50;
    --bg-color: #f4f6f8;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--bg-color);
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
}

/* Navbar & Sidebar */
.navbar {
    background: #ffffff !important;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.sidebar {
    background: #ffffff;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.04);
    border: none;
}

.brand-section {
    padding: 20px 0;
    text-align: center;
    background: var(--secondary-color);
    margin-bottom: 20px;
    border-radius: 0 0 20px 20px;
}

.logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.nav-link {
    color: #546e7a !important;
    font-weight: 500;
    border-radius: 10px;
    margin: 4px 15px;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #f1f8e9;
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

.nav-link.active {
    background: var(--primary-gradient);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.nav-link.active i {
    color: #fff !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    background: #fff;
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.card-header {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.card-header i {
    margin-right: 10px;
    padding: 8px;
    background: var(--secondary-color);
    border-radius: 10px;
    color: var(--primary-color);
}

/* Widgets */
.widget-item .card {
    position: relative;
    overflow: hidden;
}

.widget-item .card::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 100px;
    height: 100px;
    background: currentColor;
    opacity: 0.1;
    border-radius: 50%;
}

.border-left-primary {
    border-left: 5px solid #2e7d32;
}

.border-left-success {
    border-left: 5px solid #00c853;
}

.border-left-info {
    border-left: 5px solid #00bcd4;
}

.border-left-warning {
    border-left: 5px solid #ffa000;
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.5);
}

/* Tables */
.table {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table thead th {
    border: none;
    background: #f8f9fa;
    color: #95a5a6;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 15px;
}

.table tbody tr {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
}

.table tbody tr:hover {
    transform: HTMLScaleElement(1.01);
    background: #fafafa;
}

.table td {
    border: none;
    padding: 15px;
    vertical-align: middle;
}

.table td:first-child {
    border-radius: 10px 0 0 10px;
}

.table td:last-child {
    border-radius: 0 10px 10px 0;
}

/* Login */
.login-bg {
    background: var(--secondary-color);
    background-image: radial-gradient(#2e7d32 0.5px, transparent 0.5px), radial-gradient(#2e7d32 0.5px, #e8f5e9 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.login-container {
    max-width: 360px;
    /* Reduced width */
    margin: 60px auto;
    border-top: none;
    padding: 30px;
    /* Reduced padding */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    background: #fff;
    border-radius: 16px;
}

/* Inputs */
.form-control {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    /* High contrast border */
    background: #fff;
    /* White background for better visibility */
    color: #333;
    font-weight: 500;
}

.form-control:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.input-group-text {
    border-radius: 8px 0 0 8px;
    border: 1px solid #ced4da;
    background: #f1f3f5;
    color: var(--primary-color);
    font-weight: 600;
}

/* Specific Inputs Visibility */
.qty-input {
    background-color: #fffde7 !important;
    /* Light Yellow to highlight input */
    border: 2px solid #e0e0e0;
    font-weight: 700;
    font-size: 1.1em;
    color: #333;
    transition: all 0.2s;
}

.qty-input:focus {
    background-color: #fff !important;
    border-color: #2e7d32 !important;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

/* Ensure spinners are large enough */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    opacity: 1;
    height: 30px;
}

input[type=number] {
    -moz-appearance: textfield;
    /* Standardize */
    color: #000 !important;
    /* Force black text */
    opacity: 1 !important;
}