* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ========== লগইন পেজ স্টাইল ========== */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    text-align: center;
}

.login-box h2 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.login-box p {
    color: #7f8c8d;
    margin-bottom: 25px;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.input-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.login-btn {
    width: 100%;
    background: #3498db;
    border: none;
    color: white;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.login-btn:hover {
    background: #2980b9;
}

.demo-info {
    margin-top: 15px;
    font-size: 12px;
    color: #95a5a6;
}

/* ========== ড্যাশবোর্ড স্টাইল ========== */
.dashboard-body {
    background: #f4f6f9;
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* সাইডবার */
.sidebar {
    width: 260px;
    background: #1e2a3a;
    color: #ecf0f1;
    transition: 0.3s;
    position: fixed;
    height: 100%;
    z-index: 10;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #2c3e50;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #bdc3c7;
    text-decoration: none;
    transition: 0.3s;
    gap: 12px;
}

.sidebar-menu li a i {
    width: 20px;
    font-size: 18px;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: #2c3e50;
    color: white;
}

/* মূল কন্টেন্ট */
.main-content {
    flex: 1;
    margin-left: 260px;
    transition: 0.3s;
}

/* টপ নাভবার */
.top-navbar {
    background: white;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 5;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.navbar-search {
    display: flex;
    gap: 8px;
}

.navbar-search input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 250px;
}

.navbar-search button {
    background: #3498db;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    color: white;
    cursor: pointer;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    cursor: pointer;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    width: 160px;
    display: none;
    z-index: 20;
}

.navbar-user:hover .dropdown {
    display: block;
}

.dropdown a {
    display: block;
    padding: 10px 15px;
    color: #2c3e50;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown a:last-child {
    border-bottom: none;
}

.dropdown a:hover {
    background: #f4f6f9;
}

/* পেজ কন্টেন্ট */
.page-content {
    padding: 24px;
}

.dashboard-header {
    margin-bottom: 24px;
}

/* স্ট্যাটিস্টিক কার্ড */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 40px;
    color: #3498db;
}

.stat-info h3 {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.stat-info small {
    font-size: 12px;
    color: #27ae60;
}

/* গ্রিড */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.card-header a {
    color: #3498db;
    text-decoration: none;
}

.card-body {
    padding: 16px 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge.success { background: #d4edda; color: #155724; }
.badge.warning { background: #fff3cd; color: #856404; }
.badge.danger { background: #f8d7da; color: #721c24; }

/* ফুটার */
.footer {
    background: white;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    border-top: 1px solid #ecf0f1;
    font-size: 14px;
    color: #7f8c8d;
}

/* রেসপনসিভ */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -260px;
    }
    .main-content {
        margin-left: 0;
    }
    .menu-toggle {
        display: block;
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .navbar-search input {
        width: 150px;
    }
}
/* কোম্পানি পেজের জন্য স্টাইল */
.company-form-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-top: 20px;
}
.company-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.company-form .form-group {
    flex: 1;
    min-width: 200px;
}
.company-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}
.company-form .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.2s;
}
.company-form .form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.2);
}
.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.btn-edit, .btn-reset {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}
.btn-edit {
    background: #3498db;
    color: white;
}
.btn-edit:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}
.btn-reset {
    background: #ecf0f1;
    color: #2c3e50;
}
.alert-info {
    margin-top: 20px;
    padding: 12px;
    background: #e8f4fd;
    border-left: 4px solid #3498db;
    border-radius: 6px;
    color: #2c3e50;
}
@media (max-width: 768px) {
    .company-form .form-row {
        flex-direction: column;
    }
}



/* ========== Godown Page Styles ========== */
.godown-form-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-top: 20px;
    max-width: 700px;
}

.godown-form .form-group {
    margin-bottom: 20px;
}

.godown-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.godown-form .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.2s;
}

.godown-form .form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.2);
}

.godown-form textarea.form-control {
    resize: vertical;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-submit, .btn-reset {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-submit {
    background: #27ae60;
    color: white;
}

.btn-submit:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.btn-reset {
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-reset:hover {
    background: #bdc3c7;
}

.alert-info {
    margin-top: 20px;
    padding: 12px;
    background: #e8f4fd;
    border-left: 4px solid #3498db;
    border-radius: 6px;
    color: #2c3e50;
    font-size: 13px;
}

/* রেসপনসিভ */
@media (max-width: 768px) {
    .godown-form-container {
        max-width: 100%;
    }
    .form-buttons {
        flex-direction: column;
    }
}



/* ========== Product Page Styles ========== */
.product-form-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-top: 20px;
    max-width: 800px;
}

.product-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-form .form-group {
    flex: 1;
    min-width: 200px;
}

.product-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.product-form .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.2s;
}

.product-form .form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.2);
}

/* Unit section */
.unit-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.unit-checkbox-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.unit-checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
}

.unit-price-field {
    flex: 1;
    min-width: 150px;
}

.unit-price-field input {
    width: 100%;
}

/* Checkbox group for YN Active */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group small {
    color: #7f8c8d;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .product-form .form-row {
        flex-direction: column;
        gap: 10px;
    }
    .unit-checkbox-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .unit-price-field {
        width: 100%;
    }
}




/* ========== Raw Material Page Styles ========== */
.rawmaterial-form-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-top: 20px;
    max-width: 700px;
}

.rawmaterial-form .form-group {
    margin-bottom: 25px;
}

.rawmaterial-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.rawmaterial-form .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.2s;
}

.rawmaterial-form .form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.2);
}

/* Inline checkboxes */
.checkbox-group-inline {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.checkbox-group-inline label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group-inline input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.rawmaterial-form small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .rawmaterial-form-container {
        max-width: 100%;
    }
    .checkbox-group-inline {
        flex-direction: column;
        gap: 10px;
    }
}


.alert {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}
.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}