body {
    margin:0;
    font-family: 'Segoe UI', sans-serif;
    background:#f4f6f9;
}


.topbar{
display:flex;
align-items:center;
justify-content:space-between;
background:#1f2937;
color:#fff;
padding:10px 20px;
}

.logo-area h2{
margin:0;
font-size:20px;
color:#fff;
}

.top-menu{
list-style:none;
display:flex;
gap:20px;
margin:0;
padding:0;
}

.top-menu li{
position:relative;
}

.top-menu a{
color:#fff;
text-decoration:none;
font-size:14px;
padding:8px 10px;
display:block;
}

.top-menu a:hover{
background:#374151;
border-radius:4px;
}

/* dropdown */

.dropdown-content{
display:none;
position:absolute;
background:#fff;
min-width:200px;
top:35px;
left:0;
box-shadow:0 4px 10px rgba(0,0,0,0.1);
z-index:999;
}

.dropdown-content a{
color:#333;
padding:10px;
display:block;
}

.dropdown-content a:hover{
background:#f3f4f6;
}

.dropdown:hover .dropdown-content{
display:block;
}

.user-area{
display:flex;
align-items:center;
gap:15px;
}

.logout-btn{
background:#ef4444;
padding:6px 10px;
border-radius:4px;
color:#fff;
text-decoration:none;
}

.logo {
    font-size:20px;
    font-weight:bold;
}

.user-info {
    font-size:14px;
}

.logout-btn {
    margin-left:15px;
    color:#f87171;
    text-decoration:none;
}

.sidebar {
    width:230px;
    background:#111827;
    color:white;
    position:fixed;
    top:60px;
    bottom:0;
    padding:20px;
    overflow-y:auto;
}

.sidebar ul {
    list-style:none;
    padding:0;
}

.sidebar ul li {
    margin-bottom:10px;
}

.sidebar ul li a {
    color:white;
    text-decoration:none;
    display:block;
    padding:8px;
    border-radius:6px;
}

.sidebar ul li a:hover {
    background:#2563eb;
}

.menu-title {
    margin-top:20px;
    font-size:12px;
    color:#9ca3af;
    text-transform:uppercase;
}

.content {
    margin-left:25%;
    margin-top:10px;
    padding:30px;
}

.page-header h1 {
    margin-left:25%;
}

.card-grid {
    margin-top:30px;
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap:20px;
}

.card {
    background:white;
    padding:20px;
    border-radius:10px;
    text-decoration:none;
    color:black;
    box-shadow:0 3px 10px rgba(0,0,0,0.05);
    transition:0.2s;
}

.card:hover {
    transform:translateY(-5px);
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}


========================================================

/* Layout */
.content-wrapper {
    margin-left: 50px;
    padding: 30px;
    background: #f4f6f9;
    min-height: 100vh;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-header h2 {
    margin: 0;
    font-weight: 600;
}

/* Card */
.card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    
    /* Alignment styles */
    margin-left: auto; /* Pushes card to the right */
    margin-right: 0;   /* Ensures no right margin */
    width: fit-content; /* Optional: prevents card from stretching full width */
}


table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.erp-table th,
.erp-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
}




.erp-table tr:hover {
    background: #f9f9f9;
}

/* Buttons */
.btn-primary {
    background: #27ae60;
    color: white;
    padding: 8px 14px;
    border-radius: 5px;
    text-decoration: none;
	
}

.btn-primary:hover {
    background: #219150;
}

.btn-edit {
    background: #3498db;
    color: #fff;
    padding: 5px 10px;
	margin-top:10px;
	margin-bottom:10px;
    border-radius: 4px;
    text-decoration: none;
    margin-right: 5px;
	display: flex;
}

.btn-delete {
    background: #e74c3c;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
	display: flex;
}

.btn-view {
    background: #8e44ad;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        margin-left: 0;
        padding: 15px;
    }

    .erp-table th, .erp-table td {
        font-size: 12px;
    }
}













.sidebar {
    width:250px;
    background:#1f2937;
    color:#fff;
    height:100vh;
    padding:20px;
    overflow-y:auto;
}

.sidebar h2 {
    text-align:center;
}

.sidebar ul {
    list-style:none;
    padding:0;
}

.sidebar ul li {
    padding:10px;
}

.sidebar ul li a {
    color:#fff;
    text-decoration:none;
}

.menu ul {
    padding-left:15px;
    display:none;
}

.menu.active ul {
    display:block;
}

.main {
    flex:1;
    padding:30px;
}

.card {
	margin-left:5%;
	margin-right:5%;
    background:#fff;
    padding:20px;
    border-radius:8px;
    margin-bottom:20px;
}

table {
    width:100%;
    border-collapse:collapse;
}

table th, table td {
    border:1px solid #ddd;
    padding:10px;
}
input, textarea {
    width:100%;
    padding:10px;
    margin-bottom:15px;
}

button {
    padding:10px 20px;
    background:#2563eb;
    color:#fff;
    border:none;
    border-radius:5px;
}

.success {
    background:#d1fae5;
    padding:10px;
    margin-bottom:15px;
}

.error {
    background:#fee2e2;
    padding:10px;
    margin-bottom:15px;
}

body { margin:0; font-family:Arial; background:#f4f6f9; }


input, textarea {
    width:100%;
    padding:10px;
    margin-bottom:10px;
}

button {
    padding:10px;
    background:#2563eb;
    color:white;
    border:none;
}

.login-box {
    width:300px;
    margin:100px auto;
    padding:20px;
    background:white;
}



/* Sidebar */
.sidebar {
    width:230px;
    background:#111827;
    color:white;
    position:fixed;
    top:60px;
    bottom:0;
    padding:20px;
    overflow-y:auto;
    transition: all 0.3s ease;
}

/* Collapsed state */
.sidebar.collapsed {
    width:70px;
}

/* Hide text when collapsed */
.sidebar.collapsed ul li a {
    font-size:0;
}

.sidebar.collapsed ul li a::before {
    font-size:18px;
}

/* Content */
.content {
    margin-left:25px;
    margin-top:10px;
    padding:30px;
    transition: all 0.3s ease;
}

.content.expanded {
    margin-left:90px;
}

/* Toggle button */
.toggle-btn {
    background:none;
    border:none;
    color:white;
    font-size:22px;
    cursor:pointer;
    margin-right:15px;
}

<===============================================================>

.table {
    width:100%;
    border-collapse: collapse;
    background:white;
}

.table th, .table td {
    border:1px solid #ddd;
    padding:10px;
}

.btn {
    display:inline-block;
    padding:8px 12px;
    background:#2563eb;
    color:white;
    text-decoration:none;
    border-radius:6px;
    margin-bottom:10px;
}

/* ===============================
   MAIN CONTENT
================================= */
.main-content {
    margin-left: 20px;   /* same as sidebar width */
    margin-top: 40px;     /* same as topbar height */
    padding: 0px;
    background: #f4f6f9;
    min-height: 100vh;
}

/* ===============================
   PAGE TITLE
================================= */
.main-content h2 {
    margin-bottom: 25px;
    font-weight: 600;
}

/* ===============================
   FORM CONTAINER
================================= */
.main-content form {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 100%;
}

/* ===============================
   INPUT FIELDS
================================= */
.main-content input[type="text"],
.main-content input[type="email"],
.main-content input[type="number"],
.main-content input[type="file"],
.main-content textarea {
    width: 76%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.2s ease;
}

.main-content textarea {
    min-height: 90px;
    resize: vertical;
}

/* Focus effect */
.main-content input:focus,
.main-content textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.1);
}

/* ===============================
   FILE LINK
================================= */
.main-content a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
}

.main-content a:hover {
    text-decoration: underline;
}

/* ===============================
   BUTTON
================================= */
.btn {
    display: inline-block;
    padding: 10px 18px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.btn:hover {
    background: #1e40af;
}

/* ===============================
   RESPONSIVE
================================= */
@media(max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .main-content form {
        padding: 20px;
    }
}