/* ================= GLOBAL ================= */

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

button {
    cursor: pointer;
    transition: 0.3s ease;
}

button:hover {
    transform: scale(1.05);
}

/* ================= ROYAL HEADER ================= */

.royal-header {
    background: linear-gradient(to right, #b30000, #d40000);
    color: white;
    text-align: center;
    padding: 45px 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}

.royal-header h2 {
    margin: 8px 0;
    font-size: 44px;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    letter-spacing: 3px;
}

.royal-header p {
    margin: 0;
    font-size: 16px;
}

/* ================= LOGIN PAGE ================= */

.royal-login-body {
    background: linear-gradient(to bottom, #e7e2dc, #d6d0ca);
    min-height: 100vh;
}

.royal-login-card {
    width: 420px;
    margin: 70px auto;
    background: #f2efec;
    padding: 45px;
    border-radius: 25px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
    text-align: center;
}

.input-box {
    margin-bottom: 20px;
}

.input-box select,
.input-box input {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.royal-login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, #b30000, #ff1a1a);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-top: 10px;
}

/* ================= DASHBOARD ================= */

.dashboard-body {
    background: linear-gradient(to bottom, #e7e2dc, #d6d0ca);
    min-height: 100vh;
}

.dashboard-wrapper {
    text-align: center;
    margin-top: 30px;
}

.dashboard-wrapper h2 {
    font-size: 34px;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    display: inline-block;
    padding-bottom: 10px;
    color: #000;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.25);
}

.dashboard-wrapper h2::after {
    content: "";
    display: block;
    width: 60%;
    height: 3px;
    margin: 12px auto 0;
    background: linear-gradient(to right, #c89b3c, #ffd700);
    border-radius: 5px;
}

.dashboard-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 35px 0;
}

/* ================= UPDATE PAGE ================= */

.update-body {
    background: linear-gradient(to bottom, #e7e2dc, #d6d0ca);
    min-height: 100vh;
}

.update-wrapper {
    width: 90%;
    margin: 40px auto;
}

.update-wrapper h2 {
    font-family: 'Cinzel', serif;
    font-size: 30px;
    text-align: center;
    margin-bottom: 40px;
    color: #000;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.2);
}

/* Category Title */

.category-title {
    font-size: 24px;
    color: #b30000;
    font-weight: bold;
    margin-top: 40px;
    border-bottom: 2px solid #c89b3c;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title span {
    font-size: 28px;
}

/* Grid */

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

/* Premium Inventory Card */

.premium-card {
    background: linear-gradient(135deg, #f5f1ea, #efe8dc);
    border: 3px solid #ffd700;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(255,215,0,0.4);
    transition: 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(255,215,0,0.7);
}

.premium-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.stock {
    color: #b30000;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Button Group */

.btn-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* ================= GLOW BUTTONS ================= */

/* Add Button - Green Glow */

.add-btn {
    background: linear-gradient(to right, #0f9d2f, #19c84c);
    color: white;
    border: 2px solid #0b7c24;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 200, 80, 0.4);
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 100, 0.8);
}

/* Verify Button - Gold Glow */

.recheck-btn {
    background: linear-gradient(to right, #f5deb3, #e6c27a);
    color: #4a3b20;
    border: 2px solid #c89b3c;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.recheck-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.9);
}

/* Remove Button - Red Glow */

.remove-btn {
    background: linear-gradient(to right, #a30000, #ff1a1a);
    color: white;
    border: 2px solid #8b0000;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.remove-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.8);
}

/* ================= SEARCH BAR ================= */

.search-container {
    text-align: center;
    margin-bottom: 30px;
}

.search-input {
    width: 320px;
    padding: 14px;
    border-radius: 12px;
    border: 3px solid #c89b3c;
    font-size: 16px;
    outline: none;
    background: #fffaf0;
}

.search-input:focus {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    border-color: #ffd700;
}

/* ================= ROYAL MODAL ================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: linear-gradient(135deg, #f5deb3, #e6c27a);
    padding: 40px;
    border-radius: 25px;
    border: 4px solid #c89b3c;
    width: 360px;
    text-align: center;
    box-shadow:
        0 0 30px rgba(255,215,0,0.6),
        inset 0 0 25px rgba(255,255,255,0.3);
    animation: popUp 0.3s ease;
}

.modal-content h3 {
    margin-bottom: 20px;
    font-family: 'Cinzel', serif;
    font-size: 22px;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 2px solid #c89b3c;
    margin-bottom: 20px;
    font-size: 16px;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

@keyframes popUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* ================= DASHBOARD CARDS (RESTORED) ================= */

.card-base {
    width: 360px;
    padding: 45px;
    border-radius: 30px;
    border: 4px solid #ffd700;
    box-shadow:
        0 0 35px rgba(255, 215, 0, 0.6),
        inset 0 0 40px rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: 0.3s ease;
}

.card-base:hover {
    transform: translateY(-6px);
    box-shadow:
        0 0 45px rgba(255, 215, 0, 0.9),
        inset 0 0 50px rgba(255, 255, 255, 0.15);
}

/* Red Card */

.red-card {
    background: linear-gradient(135deg, #a30000, #ff1a1a);
    color: white;
}

/* Gold Card */

.gold-card {
    background: linear-gradient(135deg, #f5deb3, #e6c27a);
    color: #4a3b20;
}

/* Dashboard Buttons */

.red-btn {
    background: linear-gradient(to right, #cc0000, #ff1a1a);
    color: white;
    padding: 14px 40px;
    border-radius: 15px;
    border: 3px solid #ffd700;
    font-size: 18px;
    font-weight: 700;
}

.gold-btn {
    background: linear-gradient(to right, #f5deb3, #e6c27a);
    color: #4a3b20;
    padding: 14px 40px;
    border-radius: 15px;
    border: 3px solid #c89b3c;
    font-size: 18px;
    font-weight: 700;
}
/* ================= PREMIUM SAVE & LOGOUT BUTTONS ================= */

.update-buttons {
    text-align: center;
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

/* Save Inventory - Royal Gold Glow */

.save-btn {
    background: linear-gradient(to right, #f5deb3, #e6c27a);
    color: #4a3b20;
    padding: 14px 40px;
    border-radius: 15px;
    border: 3px solid #c89b3c;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.4);
    transition: 0.3s ease;
}

.save-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(255, 215, 0, 0.9);
}

/* Logout - Royal Red Glow */

.logout-main {
    background: linear-gradient(to right, #a30000, #ff1a1a);
    color: white;
    padding: 14px 40px;
    border-radius: 15px;
    border: 3px solid #8b0000;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(255, 0, 0, 0.4);
    transition: 0.3s ease;
}

.logout-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(255, 0, 0, 0.9);
}
/* ================= CATEGORY NAVIGATION ================= */

.category-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 8px 22px;
    border-radius: 25px;
    border: 2px solid #c89b3c;
    background: #fffaf0;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.category-tab:hover {
    background: linear-gradient(to right, #f5deb3, #e6c27a);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.active-tab {
    background: linear-gradient(to right, #f5deb3, #e6c27a);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.8);
    transform: scale(1.05);
}

/* ================= SAVE SUCCESS NOTIFICATION ================= */

.save-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    background: linear-gradient(to right, #f5deb3, #e6c27a);
    color: #4a3b20;
    padding: 20px 40px;
    border-radius: 15px;
    border: 3px solid #c89b3c;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.8);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 9999;
}

.show-notification {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* ================= VIEW STOCK COLORS ================= */

.low-stock {
    background: linear-gradient(135deg, #ffe5e5, #fff0f0);
    border: 3px solid #ff4d4d;
    box-shadow: 0 0 25px rgba(255,0,0,0.4);
}

.medium-stock {
    background: linear-gradient(135deg, #fff8dc, #fff3b0);
    border: 3px solid #ffd700;
    box-shadow: 0 0 25px rgba(255,215,0,0.4);
}

.high-stock {
    background: linear-gradient(135deg, #e8ffe8, #d4ffd4);
    border: 3px solid #19c84c;
    box-shadow: 0 0 25px rgba(0,200,80,0.4);
}

.stock-badge {
    float: right;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    color: white;
}

.badge-low { background: #ff0000; }
.badge-medium { background: #ffae00; }
.badge-high { background: #0f9d2f; }

.category-tabs {
    text-align: center;
    margin-bottom: 30px;
}

.category-tab {
    padding: 10px 22px;
    margin: 5px;
    border-radius: 20px;
    border: 2px solid #c89b3c;
    background: #fffaf0;
    font-weight: 600;
    cursor: pointer;
}

.active-tab {
    background: linear-gradient(to right, #f5deb3, #e6c27a);
}

.last-updated {
    text-align: center;
    margin-top: 30px;
    font-weight: bold;
}

/* Toggle Button */
.toggle-btn {
    font-size: 22px;
    padding: 15px;
    cursor: pointer;
    text-align: left;
}

/* Collapsed Sidebar */
.sidebar.collapsed {
    width: 70px;
    transition: 0.3s ease;
}
/* Hide full text */
.sidebar.collapsed .sidebar-logo p,
.sidebar.collapsed .sidebar-logo .brand-text {
    display: none;
}

/* Hide menu text but keep icons */
.sidebar.collapsed .menu-btn {
    text-align: center;
    padding: 14px 0;
    font-size: 0;
}

/* Show only emoji/icon */
.sidebar.collapsed .menu-btn::before {
    font-size: 20px;
    display: block;
}

/* Center logo when collapsed */
.sidebar.collapsed .sidebar-logo {
    text-align: center;
}

.sidebar.collapsed .sidebar-logo h2 {
    font-size: 22px;
}

/* Adjust main content when collapsed */
.sidebar.collapsed ~ .main-content {
    margin-left: 70px;
    width: calc(100% - 70px);
}
.layout {
    display: flex;
}

.sidebar {
    width: 240px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
}

.main-content {
    margin-left: 240px;
    width: calc(100% - 240px);
}
.layout {
    display: flex;
}
/* ============================================================
   PREMIUM SIDEBAR BUTTON STYLE

   CLEAN PROFESSIONAL SIDEBAR (Improved Visibility)
============================================================ */

.sidebar {
    background: #f4efe8;
    padding-top: 20px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.08);
    border-right: 1px solid #ddd;
}

.sidebar-logo h2 {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: #b30000;
}

.sidebar-logo p {
    color: #666;
    font-size: 13px;
}

.menu-btn {
    background: white;
    border: 1px solid #e5e5e5;
    color: #333;
}

.menu-btn:hover {
    background: #fff8ec;
    border-color: #c89b3c;
    transform: translateX(5px);
}

.active-menu {
    background: linear-gradient(to right, #f5deb3, #e6c27a);
    border: 1px solid #c89b3c;
}

.logout-btn {
    background: linear-gradient(to right, #b30000, #ff1a1a);
    color: white;
    border: none;
}

.sidebar-menu {
    list-style: none;
    padding: 0 15px;
    margin-top: 30px;
}

.menu-btn {
    margin-bottom: 15px;
    padding: 12px 18px;
    border-radius: 25px;
    background: #fffaf0;
    border: 2px solid #c89b3c;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.menu-btn:hover {
    background: linear-gradient(to right, #f5deb3, #e6c27a);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
    transform: translateX(5px);
}

.active-menu {
    background: linear-gradient(to right, #f5deb3, #e6c27a);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.8);
}

.logout-btn {
    background: linear-gradient(to right, #a30000, #ff1a1a);
    color: white;
    border: 2px solid #8b0000;
}

.logout-btn:hover {
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.7);
}

/* ================= PROFESSIONAL SIDEBAR LOGO ================= */

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 24px;
    color: #b30000;
}

.brand-text {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 16px;
    color: #b30000;
    line-height: 1.2;
}

/* Collapsed logo view */
.sidebar.collapsed .logo-wrapper {
    justify-content: center;
}

.sidebar.collapsed .logo-icon {
    font-size: 26px;
}

.sidebar.collapsed .brand-text {
    display: none;
}

.login-error {
    display: none;
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 0, 0, 0.08);
    color: #b30000;
    font-weight: 500;
    text-align: center;
    border: 1px solid #ff4d4d;
}
