/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: #cbb27c;
    overflow-x: hidden;
}

/* Custom Colors */
:root {
    --postop-beige: #cbb27c;
    --postop-brown: #4f3a23;
    --postop-orange: #c8531a;
    --amber-300: #fcd34d;
    --amber-200: #fde68a;
    --amber-600: #d97706;
    --amber-700: #b45309;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.page {
    min-height: 100vh;
    position: relative;
}

/* Google Sheets Status Indicator */
.sheets-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #16a34a;
    font-size: 0.875rem;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sheets-status.offline {
    border-left-color: #dc2626;
}

.sheets-status.syncing {
    border-left-color: var(--postop-orange);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--postop-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: var(--amber-300);
}

.loading-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--postop-orange);
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.loading-subtext {
    font-size: 0.9rem;
    color: var(--amber-200);
    opacity: 0.8;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Home Page */
.mail-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.horizontal-bar {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 16rem;
    background: var(--postop-brown);
    border-top: 4px solid black;
    border-bottom: 4px solid black;
    transform: translateY(-50%);
    z-index: 10;
}

.home-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 3rem;
    position: relative;
    z-index: 20;
}

.logo-section {
    flex-shrink: 0;
    position: absolute;
    left: 3rem;
    top: 20%;
}

.home-logo {
    width: 432px;
    height: 432px;
    object-fit: contain;
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.home-logo:hover {
    transform: scale(1.05);
}

.content-section {
    flex: 1;
    text-align: center;
    max-width: 32rem;
    margin-left: 500px;
}

.main-heading {
    font-size: 4rem;
    font-weight: bold;
    color: var(--amber-300);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    white-space: nowrap;
}

.italic {
    font-style: italic;
    font-family: Georgia, serif;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--amber-200);
    margin-bottom: 3rem;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.05em;
}

.cta-button {
    background: var(--postop-orange);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 16rem;
    justify-content: center;
    margin: 0 auto;
}

.cta-button:hover {
    background: #b8471a;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Login Page */
.mail-background-login {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    position: relative;
    z-index: 20;
}

.login-card {
    background: var(--postop-brown);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    width: 100%;
    max-width: 28rem;
    border: 4px solid black;
    position: relative;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 10rem;
    height: 10rem;
    object-fit: contain;
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--amber-300);
    margin-bottom: 0.25rem;
}

.login-header p {
    color: var(--amber-200);
    font-size: 0.875rem;
}

.error-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #dc2626;
    color: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    color: var(--amber-300);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 2px solid #b45309;
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder {
    color: #fbbf24;
}

.form-group input:focus {
    outline: none;
    border-color: #ea580c;
}

.login-button {
    width: 100%;
    background: var(--postop-orange);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    background: #b8471a;
    transform: scale(1.05);
}

.login-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.create-account-button {
    width: 100%;
    background: #16a34a;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.create-account-button:hover {
    background: #15803d;
    transform: scale(1.05);
}

.back-button {
    width: 100%;
    color: var(--amber-300);
    background: transparent;
    border: none;
    padding: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.back-button:hover {
    color: var(--amber-200);
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
}

.login-footer p {
    color: #fbbf24;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.test-users {
    color: #d97706;
    font-size: 0.75rem;
}

.test-users p {
    margin-bottom: 0.25rem;
}

.test-users span {
    font-weight: 600;
}

/* Dashboard Page */
.dashboard-header {
    background: var(--postop-brown);
    border-bottom: 4px solid #dc2626;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 2rem;
}

.header-logo {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
}

.header-info h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--amber-300);
}

.header-info p {
    color: var(--amber-200);
    font-size: 0.875rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: 2rem;
}

.header-btn {
    background: var(--postop-orange);
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.header-btn:hover {
    background: #b8471a;
}

.user-btn {
    background: var(--amber-600);
}

.user-btn:hover {
    background: var(--amber-700);
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.logout-btn {
    background: #dc2626;
    color: white;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background: #b91c1c;
}

.dashboard-content {
    padding: 1.5rem 3rem;
}

.dashboard-title {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-title h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--postop-brown);
    margin-bottom: 1rem;
}

.dashboard-title p {
    font-size: 1.25rem;
    color: #b45309;
}

.department-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.department-card {
    border-radius: 1rem;
    padding: 2rem;
    border: 4px solid black;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.logistics-card {
    background: var(--postop-brown);
}

.luxury-card {
    background: var(--amber-700);
    opacity: 0.75;
}

.staff-card {
    background: #1f2937;
}

.card-content {
    margin-bottom: 1.5rem;
}

.card-logo {
    width: 6rem;
    height: 6rem;
    object-fit: contain;
    margin-bottom: 1rem;
}

.locked-icon, .staff-icon {
    background: #6b7280;
    padding: 1rem;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 1rem;
}

.locked-icon svg, .staff-icon svg {
    color: #d1d5db;
}

.staff-icon {
    background: var(--amber-600);
}

.staff-icon svg {
    color: white;
}

.department-card h3 {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.logistics-card h3 {
    color: var(--amber-300);
}

.luxury-card h3 {
    color: var(--amber-200);
}

.staff-card h3 {
    color: var(--amber-300);
}

.department-card p {
    font-size: 0.875rem;
    line-height: 1.6;
}

.logistics-card p {
    color: var(--amber-200);
}

.luxury-card p {
    color: #fef3c7;
}

.staff-card p {
    color: var(--amber-200);
}

.access-button {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: 2px solid;
}

.access-button.authorized {
    background: var(--postop-orange);
    color: white;
    border-color: #b45309;
}

.access-button.authorized:hover {
    background: #b8471a;
    transform: scale(1.05);
}

.access-button.denied {
    background: #b91c1c;
    color: white;
    border-color: #991b1b;
    cursor: not-allowed;
}

.access-note {
    text-align: center;
    color: var(--amber-200);
    font-size: 0.75rem;
    margin-top: 0.75rem;
}

.user-info {
    background: var(--postop-brown);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 2px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: var(--amber-300);
    max-width: 1200px;
    margin: 0 auto;
}

.user-details, .user-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.status-dot {
    width: 0.75rem;
    height: 0.75rem;
    background: #10b981;
    border-radius: 50%;
}

/* Shop Pages */
.shop-header, .staff-header, .cart-header {
    background: var(--postop-brown);
    border-bottom: 4px solid #dc2626;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.luxury-header {
    background: var(--amber-700);
}

.back-btn {
    background: #dc2626;
    color: white;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background: #b91c1c;
}

.shop-content {
    padding: 2rem;
}

.shop-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--postop-brown);
    background: transparent;
    color: var(--postop-brown);
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover, .category-btn.active {
    background: var(--postop-brown);
    color: var(--amber-300);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    background: #f3f4f6;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.product-info h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--postop-brown);
    margin-bottom: 0.5rem;
}

.product-info p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--postop-orange);
    margin-bottom: 0.5rem;
}

.product-stock {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    font-weight: 500;
}

.add-to-cart-btn {
    width: 100%;
    background: var(--postop-orange);
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #b8471a;
    transform: scale(1.05);
}

.sync-btn {
    background: linear-gradient(135deg, var(--postop-orange) 0%, #ea580c 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(200, 83, 26, 0.3);
}

.sync-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 83, 26, 0.4);
}

/* Staff Panel - Updated with Beige Background and Brown Header */
.staff-header {
    background: var(--postop-brown);
    border-bottom: 4px solid var(--postop-orange);
}

.staff-content {
    padding: 2rem;
    background: var(--postop-beige);
    min-height: calc(100vh - 100px);
}

.staff-dashboard {
    max-width: 1400px;
    margin: 0 auto;
}

.staff-welcome {
    background: linear-gradient(135deg, var(--postop-brown) 0%, #6b4423 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.staff-welcome h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--amber-300);
}

.staff-welcome p {
    font-size: 1.125rem;
    color: var(--amber-200);
}

.staff-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: white;
    padding: 0.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.staff-tab {
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    color: #6b7280;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: fit-content;
}

.staff-tab:hover {
    background: #f3f4f6;
    color: var(--postop-brown);
}

.staff-tab.active {
    background: var(--postop-orange);
    color: white;
    box-shadow: 0 4px 15px rgba(200, 83, 26, 0.3);
}

.staff-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.staff-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.panel-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--postop-brown);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.add-btn {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
}

/* Modern Tables */
.data-table {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--postop-brown);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e5e7eb;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.data-table tr:hover {
    background: #f8fafc;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.status-online {
    background: #dcfce7;
    color: #166534;
}

.status-offline {
    background: #fee2e2;
    color: #991b1b;
}

.status-active {
    background: #dbeafe;
    color: #1e40af;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.edit-btn {
    background: #3b82f6;
    color: white;
}

.edit-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.delete-btn {
    background: #ef4444;
    color: white;
}

.delete-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.view-btn {
    background: #8b5cf6;
    color: white;
}

.view-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--postop-orange), var(--amber-600));
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--postop-orange), #ea580c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.stat-card h4 {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card .stat-value {
    color: var(--postop-brown);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-trend {
    font-size: 0.875rem;
    color: #16a34a;
    font-weight: 500;
}

/* Product Management */
.product-form {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: none;
}

.product-form.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-weight: 600;
    color: var(--postop-brown);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--postop-orange);
    box-shadow: 0 0 0 3px rgba(200, 83, 26, 0.1);
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.save-btn {
    background: linear-gradient(135deg, var(--postop-orange) 0%, #ea580c 100%);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 83, 26, 0.3);
}

.cancel-btn {
    background: #6b7280;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #4b5563;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--postop-brown);
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Cart Page */
.cart-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.cart-items {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: #f3f4f6;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-weight: 600;
    color: var(--postop-brown);
    margin-bottom: 0.25rem;
}

.cart-item-info p {
    color: #6b7280;
    font-size: 0.875rem;
}

.cart-item-price {
    font-weight: bold;
    color: var(--postop-orange);
    font-size: 1.125rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.quantity-btn:hover {
    background: #f3f4f6;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    padding: 0.5rem;
}

.remove-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.remove-btn:hover {
    background: #dc2626;
}

.cart-summary {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.125rem;
    color: var(--postop-brown);
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.checkout-btn {
    width: 100%;
    background: var(--postop-orange);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: #b8471a;
    transform: scale(1.05);
}

.empty-cart {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.empty-cart svg {
    margin: 0 auto 1rem;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .home-container {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .logo-section {
        position: static;
        margin-bottom: 2rem;
    }
    
    .content-section {
        margin-left: 0;
    }
    
    .main-heading {
        font-size: 3rem;
    }
    
    .home-logo {
        width: 300px;
        height: 300px;
    }
    
    .staff-tabs {
        justify-content: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-header, .shop-header, .staff-header, .cart-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-left, .header-right {
        margin: 0;
    }
    
    .department-cards {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .cart-content {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .staff-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-heading {
        font-size: 2.5rem;
        white-space: normal;
    }
    
    .subtitle {
        font-size: 1.25rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .login-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .main-heading {
        font-size: 2rem;
    }
    
    .home-logo {
        width: 200px;
        height: 200px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .quantity-controls {
        margin: 0;
    }
    
    .staff-content {
        padding: 1rem;
    }
    
    .panel-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .data-table {
        overflow-x: auto;
    }
    
    .data-table table {
        min-width: 600px;
    }
}