body{font-family:Arial, sans-serif;background:#f7f7f7;color:#333}
.topbar{background:#222;color:#fff;padding:10px 20px;display:flex;justify-content:space-between}
.topbar .nav a{color:#fff;margin-left:10px;text-decoration:none}
.container{padding:20px}
table{width:100%;border-collapse:collapse;background:#fff}
table th, table td{border:1px solid #ddd;padding:8px}
.form-row{margin-bottom:10px}
input[type=text], input[type=password], textarea, select{padding:8px;width:100%;box-sizing:border-box}
.button{display:inline-block;padding:8px 12px;background:#007bff;color:#fff;text-decoration:none;border-radius:4px}
.alert{padding:10px;background:#fffae6;border:1px solid #ffe08a}
.error{padding:8px;background:#ffdede;border:1px solid #ff9a9a;margin-bottom:10px}
.success{padding:8px;background:#e6ffed;border:1px solid #8af2a1;margin-bottom:10px}
.register-link {
  margin-top: 15px;
  text-align: center;
}

.button.secondary {
  background: #f1f1f1;
  color: #333;
}

.button.secondary:hover {
  background: #e0e0e0;
}

/* RESET FOR OLD TOPBAR */
.topbar { display: none !important; }

/* === NEW BLUE GRADIENT TOPBAR === */
.topbar-new {
    width: 100%;
    padding: 12px 12px;
    background: linear-gradient(90deg, #6fb1fc, #4364f7, #0052d4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* LEFT SIDE */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-logo {
    height: 40px;
    width: 45px;
    object-fit: contain;

}

.topbar-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

/* RIGHT SIDE */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-name {
    font-size: 15px;
    font-weight: 400;
}

.logout-btn {
    color: white;
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.25s ease-in-out;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.45);
}

/* === Footer === */


.footer{
    width: 100%;
    padding: 12px 12px;
    background: linear-gradient(90deg, #0052d4, #4364f7, #6fb1fc);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    top: 0;
    
}

/* -------------------------
   GLOBAL STYLING
--------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background: #f6f8fb;
}

/* -------------------------
   LAYOUT
--------------------------*/
.layout {
    display: flex;
}

/* -------------------------
   SIDEBAR
--------------------------*/
.sidebar {
    width: 250px;
    background: #1a1f36;
    color: #fff;
    min-height: 100vh;
    padding: 25px;
    
}

.logo {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 40px;
}

.menu li {
    list-style: none;
    padding: 12px 10px;
    margin: 6px 0;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
    transition: 0.2s;
}

.menu li:hover,
.menu li.active {
    background: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

/* -------------------------
   TOP BAR
--------------------------*/
.content {
    flex: 1;
    padding: 30px 40px;
}


.search {
    width: 350px;
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: #fff;
}

/* User Area */
.user-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notif {
    font-size: 22px;
    cursor: pointer;
}

.user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

/* -------------------------
   TITLES
--------------------------*/
.title {
    margin-top: 25px;
    font-size: 26px;
    font-weight: 700;
}

.subtitle {
    color: #555;
    margin-bottom: 25px;
}

/* -------------------------
   STAT CARDS
--------------------------*/
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    background: #fff;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-3px);
}

.card h3 {
    font-size: 15px;
    color: #666;
}

.card .value {
    font-size: 22px;
    font-weight: 700;
    margin-top: 6px;
}

/* -------------------------
   QUICK ACTION BUTTONS
--------------------------*/
.quick-actions {
    margin: 30px 0;
    display: flex;
    gap: 15px;
}

.quick-actions button {
    padding: 12px 18px;
    border: none;
    background: #eef0ff;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.quick-actions button:hover {
    background: #e0e3ff;
}

/* -------------------------
   CHART BOX
--------------------------*/
.chart-box {
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    margin-bottom: 40px;
}

.menu li a {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    width: 100%;
}
.menu li.active {
    background: rgba(255, 255, 255, 0.20);
    opacity: 1;
}

.menu li.active a {
    font-weight: 600;
}
/* ---- ERP SIDEBAR SYSTEM (NO CONFLICT VERSION) ---- */

.erp-sidebar {
    width: 250px;
    background: #1e1e2d;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px 0;
    color: #fff;
}

.erp-logo {
    text-align: center;
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: bold;
}

.erp-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.erp-menu li {
    padding: 12px 25px;
}

.erp-menu li a {
    color: #cfd3dc;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.erp-menu li:hover {
    background: #2a2a3c;
}

.erp-menu li.active {
    background: #0d6efd;
}

.erp-menu li.active a {
    color: #fff !important;
}

.erp-menu li a i {
    font-size: 20px;
}


/* MAIN CONTENT */
.erp-content {
    margin-left: 250px;
    padding: 25px;
}
/* MAIN PAGE TITLE */
.page-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

/* SUCCESS & ERROR ALERTS */
.alert-success {
    background: #d4f8d4;
    padding: 10px;
    border-left: 5px solid #2ecc71;
    margin-bottom: 15px;
}
.alert-danger {
    background: #ffd1d1;
    padding: 10px;
    border-left: 5px solid #e74c3c;
    margin-bottom: 15px;
}

/* EMPLOYEE FORM */
.emp-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    width: 60%;
}
.emp-row {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}
.emp-row label {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}
.emp-row input,
.emp-row select {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* BUTTONS */
.btn-primary {
    background: #2360ff;
    color: #fff;
    border: 0;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
}
.btn-primary:hover {
    background: #1a4fd4;
}
.btn-delete {
    background: #e74c3c;
    padding: 6px 12px;
    border-radius: 5px;
    color: #fff;
    border: 0;
    cursor: pointer;
}
.btn-delete:hover {
    background: #c0392b;
}

/* EMPLOYEES TABLE */
.emp-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-top: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.emp-table th {
    background: #2360ff;
    color: #fff;
    padding: 10px;
    text-align: left;
}
.emp-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}
.emp-table tr:hover {
    background: #f7faff;
}

