/* DASHBOARD */
.page-title {
    margin-bottom: 5px;
}

.subtitle {
    color: #777;
    margin-bottom: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    padding: 20px;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.stat-card h4 {
    margin: 0;
    font-size: 15px;
    opacity: 0.9;
}

.stat-card p {
    font-size: 32px;
    margin: 10px 0;
    font-weight: bold;
}

.stat-card span {
    font-size: 13px;
    opacity: 0.85;
}

.blue { background: linear-gradient(135deg, #2196f3, #21cbf3); }
.green { background: linear-gradient(135deg, #4caf50, #81c784); }
.red { background: linear-gradient(135deg, #f44336, #e57373); }
.purple { background: linear-gradient(135deg, #9c27b0, #ba68c8); }
.orange { background: linear-gradient(135deg, #ff9800, #ffb74d); }

.quick-actions {
    margin-top: 30px;
}

.action-btn {
    display: inline-block;
    padding: 12px 18px;
    margin-right: 10px;
    background: #222;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
}

.card-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
}

.form-grid input {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.form-grid button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #2196f3;
    color: #fff;
    cursor: pointer;
}

.table-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

th {
    text-align: left;
    background: #f5f5f5;
}

.badge.active {
    color: #2e7d32;
    font-weight: bold;
}

.badge.inactive {
    color: #c62828;
    font-weight: bold;
}

.btn.small {
    padding: 6px 12px;
    border-radius: 6px;
    background: #333;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.login-body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    width: 380px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    text-align: center;
}

.login-box h2 {
    margin: 0;
    color: #2c5364;
    font-size: 22px;
}

.login-box .subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.login-box input:focus {
    outline: none;
    border-color: #2c5364;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #2c5364;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.login-box button:hover {
    background: #203a43;
}

.error {
    background: #ffe6e6;
    color: #b30000;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}
/* DASHBOARD STYLES */
.page-title {
    font-size: 28px;
    margin-bottom: 5px;
    color: #333;
}

.subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.stat-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card h4 {
    margin: 0;
    font-size: 18px;
    opacity: 0.9;
}

.stat-card p {
    font-size: 40px;
    margin: 12px 0;
    font-weight: 700;
}

.stat-card span {
    font-size: 14px;
    opacity: 0.8;
}

.blue { background: linear-gradient(135deg, #2196f3, #21cbf3); }
.green { background: linear-gradient(135deg, #4caf50, #81c784); }
.red { background: linear-gradient(135deg, #f44336, #e57373); }
.purple { background: linear-gradient(135deg, #9c27b0, #ba68c8); }
.orange { background: linear-gradient(135deg, #ff9800, #ffb74d); }

.quick-actions {
    margin-top: 35px;
    text-align: center;
}

.action-btn {
    display: inline-block;
    padding: 14px 28px;
    margin: 0 10px;
    background: #222;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.action-btn:hover {
    background: #555;
}

.btn-back {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 15px;
    background-color: #555;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-back:hover {
    background-color: #333;
}

/* DASHBOARD STYLES */
.page-title {
    font-size: 28px;
    margin-bottom: 5px;
    color: #333;
}

.subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.stat-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card h4 {
    margin: 0;
    font-size: 18px;
    opacity: 0.9;
}

.stat-card p {
    font-size: 40px;
    margin: 12px 0;
    font-weight: 700;
}

.stat-card span {
    font-size: 14px;
    opacity: 0.8;
}

.blue { background: linear-gradient(135deg, #2196f3, #21cbf3); }
.green { background: linear-gradient(135deg, #4caf50, #81c784); }
.red { background: linear-gradient(135deg, #f44336, #e57373); }
.purple { background: linear-gradient(135deg, #9c27b0, #ba68c8); }
.orange { background: linear-gradient(135deg, #ff9800, #ffb74d); }

.quick-actions {
    margin-top: 35px;
    text-align: center;
}

.action-btn {
    display: inline-block;
    padding: 14px 28px;
    margin: 0 10px;
    background: #222;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.action-btn:hover {
    background: #555;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background: #2c3e50;
    color: #ecf0f1;
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: 2px 0 12px rgba(0,0,0,0.1);
    z-index: 1000;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    font-weight: 700;
}

.user-name {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 30px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #ecf0f1;
    font-weight: 600;
    margin-bottom: 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.sidebar-nav a .icon {
    margin-right: 10px;
    font-size: 18px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: #34495e;
    color: #fff;
}

.logout-btn {
    margin-top: auto;
    background: #e74c3c !important;
    color: white !important;
    font-weight: 700;
    text-align: center;
}

.logout-btn:hover {
    background: #c0392b !important;
}

/* Adjust main content to make room for fixed sidebar */
.main-content {
    margin-left: 250px;
    padding: 30px 40px;
    min-height: 100vh;
    background: #f5f7fa;
}

/* Responsive sidebar */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
        box-shadow: none;
    }
    .main-content {
        margin-left: 0;
        padding: 20px 15px;
    }
}

/* Header */
.site-header {
    background: #34495e;
    padding: 15px 30px;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
}

.business-name {
    margin: 0;
    font-weight: 700;
    font-size: 24px;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background: #2c3e50;
    color: #ecf0f1;
    display: flex;
    flex-direction: column;
    padding: 90px 15px 20px; /* padding top pushed for header height */
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(0,0,0,0.1);
    z-index: 1000;
}

.sidebar-header {
    margin-bottom: 30px;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #ecf0f1;
    font-weight: 600;
    margin-bottom: 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.sidebar-nav a .icon {
    margin-right: 10px;
    font-size: 18px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: #34495e;
    color: #fff;
}

.logout-btn {
    margin-top: auto;
    background: #e74c3c !important;
    color: white !important;
    font-weight: 700;
    text-align: center;
}

.logout-btn:hover {
    background: #c0392b !important;
}

/* Main content */
.main-content {
    margin-left: 220px;
    padding: 110px 40px 40px; /* padding top pushed for header height */
    min-height: 100vh;
    background: #f5f7fa;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 20px;
}

/* Cards */
.stat-card {
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: box-shadow 0.25s ease;
    
}

.stat-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.stat-card h4 {
    margin: 0;
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.stat-card p {
    font-size: 40px;
    margin: 0 0 6px;
    font-weight: 700;
}

.stat-card span {
    font-size: 14px;
    opacity: 0.7;
}

/* Low stock special style */
.low-stock-card {
    border: 2px solid #e67e22;
    color: #d35400;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 20px 15px 15px;
    }
    .main-content {
        margin-left: 0;
        padding: 140px 20px 20px;
    }
    .header-container {
        padding: 0 20px;
    }
}

/* Container for search and add product button */
.page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

/* Search form styling */
.search-form {
    display: flex;
    align-items: center;
}

.search-form input[type="text"] {
    padding: 8px 12px;
    font-size: 14px;
    border: 1.5px solid #ccc;
    border-radius: 4px 0 0 4px;
    outline: none;
    width: 250px;
    transition: border-color 0.3s ease;
}

.search-form input[type="text"]:focus {
    border-color: #3498db;
}

/* Buttons base */
.btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
}

/* Primary button for Add Product */
.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

/* Secondary button for Search */
.btn-secondary {
    background-color: #bdc3c7;
    color: #2c3e50;
    border: 1.5px solid #ccc;
    border-radius: 0 4px 4px 0;
}

.btn-secondary:hover {
    background-color: #95a5a6;
    border-color: #7f8c8d;
    color: white;
}

/* Small action buttons in table */
.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
}

/* Edit button */
.btn-edit {
    background-color: #27ae60;
    color: white;
    margin-right: 6px;
}

.btn-edit:hover {
    background-color: #1e8449;
}

/* Danger (Deactivate) button */
.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Success (Activate) button */
.btn-success {
    background-color: #2ecc71;
    color: white;
}

.btn-success:hover {
    background-color: #27ae60;
}

/* Table styling */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: rgb(125, 127, 212);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

.data-table thead {
    background-color: #3498db;
    color: rgb(136, 121, 204);
}

.data-table th, 
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table tbody tr:hover {
    background-color: #f0f8ff;
}

/* Responsive table */
@media (max-width: 768px) {
    .data-table thead {
        display: none;
    }

    .data-table, 
    .data-table tbody, 
    .data-table tr, 
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tr {
        margin-bottom: 15px;
        border-bottom: 2px solid #ddd;
    }

    .data-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #ddd;
    }

    .data-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: calc(50% - 30px);
        font-weight: 600;
        text-align: left;
        color: #555;
    }
}

.form-container {
    background: white;
    padding: 25px 30px;
    border-radius: 8px;
    max-width: 600px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.form-container label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    margin-top: 15px;
}

.form-container input[type="text"],
.form-container input[type="number"],
.form-container select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1.5px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-container input[type="text"]:focus,
.form-container input[type="number"]:focus,
.form-container select:focus {
    border-color: #3498db;
}

.required {
    color: #e74c3c;
}

.form-buttons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.form-buttons .btn {
    flex: 1;
    text-align: center;
}

.data-table select {
    padding: 6px 8px;
    font-size: 14px;
    border-radius: 4px;
    border: 1.5px solid #ccc;
    outline: none;
    width: 100%;
    max-width: 120px;
    cursor: pointer;
}

.data-table select:focus {
    border-color: #3498db;
}

.filter-form input[type="text"],
.filter-form input[type="number"] {
    padding: 6px 10px;
    margin-right: 8px;
    border-radius: 4px;
    border: 1.5px solid #ccc;
    outline: none;
    width: 140px;
}

.filter-form input[type="number"]:focus,
.filter-form input[type="text"]:focus {
    border-color: #3498db;
}

.filter-form button {
    margin-right: 8px;
}

.sell-form input[type="number"] {
    width: 70px;
    padding: 5px;
    border-radius: 4px;
    border: 1.5px solid #ccc;
}

.sell-form input[type="number"]:focus {
    border-color: #27ae60;
}

.data-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.data-table tbody tr:hover {
    background-color: #e0f7fa;
}

.alert {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-weight: 600;
}

.alert-success {
    background-color: #2ecc71;
    color: white;
}

.alert-danger {
    background-color: #e74c3c;
    color: white;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
}
.styled-table thead {
    background: #2c3e50;
    color: #fff;
}
.styled-table th, .styled-table td {
    padding: 12px;
}
.styled-table tbody tr:nth-child(even) {
    background: #f4f6f8;
}
.styled-table tbody tr:hover {
    background: #eaf2ff;
}

.btn {
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
}
.btn-primary { background: #3498db; color: #fff; }
.btn-warning { background: #f39c12; color: #fff; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-secondary { background: #7f8c8d; color: #fff; }

.sell-form {
    max-width: 450px;
    background: #fff;
    padding: 20px;
    border-radius: 6px;
}

.alert.success {
    background: #2ecc71;
    color: white;
    padding: 10px;
    margin-bottom: 15px;
}

/* =========================
   LOGIN PAGE
========================= */

body.login-page {
    margin: 0;
    padding: 0;
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
}

.login-box {
    width: 360px;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.login-box h2 {
    margin: 0;
    color: #1e3c72;
}

.login-box .subtitle {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #1e3c72;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
}

.login-box button:hover {
    background: #16325c;
}

.alert.error {
    background: #e74c3c;
    color: white;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
}

/* =========================
   AUTH / LOGIN PAGE
========================= */

.auth-body {
    background: #f4f6f9;
    height: 100vh;
}

/* MAIN WRAPPER */
.auth-container {
    display: flex;
    height: 100vh;
}

/* LEFT PANEL */
.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    padding: 80px 60px;
}

.auth-left h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.auth-left p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.auth-left ul {
    list-style: none;
}

.auth-left ul li {
    margin-bottom: 12px;
    font-size: 15px;
}

/* RIGHT PANEL */
.auth-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CARD */
.auth-card {
    width: 420px;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.auth-card h2 {
    font-size: 26px;
    margin-bottom: 5px;
}

.auth-sub {
    color: #777;
    margin-bottom: 25px;
}

/* FORM */
.auth-card label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #444;
}

.auth-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.auth-card input:focus {
    border-color: #2a5298;
    outline: none;
}

/* BUTTON */
.auth-card button {
    width: 100%;
    padding: 13px;
    background: #2a5298;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.auth-card button:hover {
    background: #1e3c72;
}

/* ERROR */
.auth-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* FOOTER */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #999;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .auth-left {
        display: none;
    }
}

.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1rem 1.5rem; /* Reduced horizontal padding for wider table */
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    overflow-x: auto; /* Allow horizontal scroll if table too wide */
}

.total-amount {
    background: #27ae60;
    color: white;
    padding: 22px 30px;
    font-size: 1.8rem; /* Bigger text */
    border-radius: 10px;
    margin-bottom: 30px;
    width: fit-content;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.6);
    user-select: none;
    transition: box-shadow 0.3s ease;
}

.total-amount:hover {
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.9);
}

table {
    width: 100%;
    min-width: 700px; /* force table to be at least this wide */
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

thead {
    background-color: #27ae60;
    color: white;
    cursor: pointer;
    user-select: none;
}

th, td {
    padding: 16px 20px;
    border: 1px solid #ddd;
    text-align: left;
    color: #222;
}

tbody tr:nth-child(even) {
    background-color: #f0f9f0;
}

tbody tr:hover {
    background-color: #c6edc6;
}

/* Data Table Styling */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  color: #2c3e50;
  box-shadow: 0 0 15px rgb(0 0 0 / 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.data-table thead {
  background-color: #27ae60; /* Green header */
  color: white;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
}

.data-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.data-table tbody tr:hover {
  background-color: #d6f5d6; /* Light green hover */
  cursor: pointer;
}

/* Action buttons in table */
.btn-sm {
  padding: 5px 10px;
  font-size: 0.85rem;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.btn-edit {
  background-color: #3498db;
  color: white;
}

.btn-edit:hover {
  background-color: #2980b9;
}

.btn-danger {
  background-color: #e74c3c;
  color: white;
}

.btn-danger:hover {
  background-color: #c0392b;
}

.btn-success {
  background-color: #27ae60;
  color: white;
}

.btn-success:hover {
  background-color: #1e8449;
}

/* Container for the form */
.form-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Form Title */
.form-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #27ae60; /* Green */
}

/* Labels */
.form-container label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #34495e;
}

/* Inputs and Selects */
.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="password"],
.form-container select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 1.2rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  color: #2c3e50;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.form-container input[type="text"]:focus,
.form-container input[type="email"]:focus,
.form-container input[type="password"]:focus,
.form-container select:focus {
  border-color: #27ae60;
  outline: none;
}

/* Buttons */
.form-container button {
  background-color: #27ae60;
  color: white;
  font-weight: 700;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  width: 100%;
  transition: background-color 0.3s ease;
}

.form-container button:hover {
  background-color: #219150;
}

/* Cancel Button */
.form-container .btn-cancel {
  display: inline-block;
  background-color: #e74c3c;
  margin-top: 0.5rem;
  text-align: center;
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  transition: background-color 0.3s ease;
}

.form-container .btn-cancel:hover {
  background-color: #c0392b;
}

/* Error message */
.form-error {
  background-color: #e74c3c;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
}

/* Success message */
.form-success {
  background-color: #27ae60;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
}

/* ===== TOP ACTIONS ===== */
.top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

/* Back button */
.btn-back {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #dcdcdc;
}

.btn-back:hover {
    background: #dfe6e9;
}

/* Logout */
.super-logout-btn {
    background: #c0392b;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

.super-logout-btn:hover {
    background: #e74c3c;
}

/* ===== PAGE ===== */
.page-title {
    font-size: 26px;
    margin-bottom: 5px;
}

.subtitle {
    color: #777;
    margin-bottom: 20px;
}

/* ===== CARDS ===== */
.card-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
}

.form-grid input {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* ===== TABLE ===== */
.table-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #27ae60;
    color: white;
    padding: 12px;
    text-align: left;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.data-table tr:hover {
    background: #f6fff8;
}

/* ===== BADGES ===== */
.badge.active {
    background: #2ecc71;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
}

.badge.inactive {
    background: #e74c3c;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    background: #3498db;
    color: white;
    font-size: 14px;
}

.btn.small {
    font-size: 13px;
}

.btn-primary {
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
}

