/* =========================================
   1. VARIABLES & THEME CONFIGURATION
   ========================================= */
   :root {
    /* --- COLORS --- */
    --bg-body: #121212;         /* Deepest background */
    --bg-card: #1e1e1e;         /* Panels/Cards */
    --bg-input: #2d2d2d;        /* Input fields */
    --bg-hover: #2c2c2c;        /* General List Item Hover */
    
    --text-main: #ffffff;       /* Primary text */
    --text-muted: #a0a0a0;      /* Secondary text */
    --text-inverse: #000000;    /* Text on bright buttons */

    --border-color: #333333;    /* Subtle borders */
    
    /* --- BRAND COLORS --- */
    --primary: #007bff;         /* Action Blue */
    --primary-hover: #0056b3;
    
    --success: #28a745;         /* Green (Save/Active) */
    --success-hover: #218838;
    
    --danger: #dc3545;          /* Red (Delete/Inactive) */
    --danger-hover: #c82333;
    
    --warning: #ffc107;         /* Yellow (Alerts) */
    --info: #17a2b8;            /* Teal (Export/Info) */

    /* --- INTERACTIVE STATES (New Variables) --- */
    /* Used for the sidebar profile button hover */
    --hover-overlay-light: rgba(255, 255, 255, 0.05); 
    /* Used for the sidebar logout button hover */
    --hover-overlay-danger: rgba(220, 53, 69, 0.1);   
    /* --- Background for inset boxes (like password change) --- */
    --bg-overlay-dark: rgba(0, 0, 0, 0.2);
    
    /* --- DIMENSIONS --- */
    --sidebar-width: 260px;
    --header-height: 60px;
    --radius: 8px;              /* Standard rounded corner */
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

h1, h2, h3, h4, h5 {
    margin-top: 0;
    color: var(--text-main);
    font-weight: 600;
}

a { text-decoration: none; color: var(--primary); }
a:hover { text-decoration: underline; }

/* Prevent Flash of Unstyled Content (Alpine.js) */
[x-cloak] { display: none !important; }

/* =========================================
   3. APP LAYOUT (Sidebar + Main)
   ========================================= */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: #0f0f0f; /* Slightly darker than card */
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-shrink: 0;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--success);
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.nav-item:hover {
    background-color: var(--hover-overlay-light);
    color: var(--text-main);
    text-decoration: none;
}

.nav-item.active {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border-left-color: var(--success);
}

.sidebar-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 10px 20px;
}

/* --- Sidebar Footer Components --- */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: #0f0f0f;
}

/* Profile Button Container */
.sidebar-profile-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s;
    margin-bottom: 10px;
    color: var(--text-main);
}

/* Avatar Circle */
.sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--success);
    color: #000000; /* Black text on green background */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    overflow: hidden;
    flex-shrink: 0; /* Prevents squishing on small screens */
}

/* Avatar Image & Text */
.sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-avatar span {
    font-size: 0.9em;
}

/* Profile Text Info */
.sidebar-profile-info {
    line-height: 1.2;
    overflow: hidden; /* prevents long names breaking layout */
}

.profile-name {
    font-weight: bold;
    color: var(--text-main);
    font-size: 0.95em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-role {
    font-size: 0.75em;
    color: var(--text-muted);
}

/* Logout Button */
.sidebar-logout-btn {
    width: 100%;
    background-color: var(--bg-card); /* Using variable for theme consistency */
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

/* Sidebar Specific Button Interactions (Refactored from HTML) */
.profile-btn-hover:hover {
    background-color: var(--hover-overlay-light);
}

.logout-btn-hover:hover {
    background-color: var(--hover-overlay-danger);
    color: var(--danger) !important;
    border-color: var(--danger) !important;
}

/* --- Main Content --- */
.main-content {
    flex: 1;
    background-color: var(--bg-body);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page-container {
    padding: 30px;
    overflow-y: auto;
    height: 100%;
}

/* =========================================
   4. COMPONENT: CARDS & CONTAINERS
   ========================================= */
.admin-container, 
.dashboard-container,
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-container h1, 
.dashboard-heading {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.admin-container h3 {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    margin-top: 10px;
}

/* =========================================
   5. COMPONENT: FORMS & INPUTS
   ========================================= */
form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
    background-color: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.95rem;
    flex: 1;
    min-width: 150px;
    transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Search Container Specifics */
.search-container {
    background-color: var(--bg-card);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text-muted);
}

/* File Input Wrapper */
input[type="file"] {
    padding: 8px;
    cursor: pointer;
}

/* =========================================
   6. COMPONENT: BUTTONS
   ========================================= */
.button, button, .btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

/* Variants */
.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); }

.btn-success { background-color: var(--success); color: white; }
.btn-success:hover { background-color: var(--success-hover); }

.btn-danger { background-color: var(--danger); color: white; }
.btn-danger:hover { background-color: var(--danger-hover); }

.btn-secondary, .btn-secondary-outline { 
    background-color: transparent; 
    border: 1px solid var(--border-color); 
    color: var(--text-muted); 
}
.btn-secondary:hover { background-color: rgba(255,255,255,0.1); color: white; }

/* Special Variants */
.btn-export { background-color: var(--info); color: white; }
.btn-export:hover { background-color: #138496; }

.btn-printer { background-color: #6f42c1; color: white; }
.btn-printer:hover { background-color: #5a32a3; }

/* Small Buttons (Table Actions) */
.btn-sm {
    padding: 4px 10px;
    font-size: 0.8em;
    min-width: 60px;
}
.btn-owner { background-color: var(--primary); color: white; }
.btn-warning { background-color: var(--warning); color: #212529; }

/* =========================================
   7. COMPONENT: TABLES
   ========================================= */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

table, .data-table, .model-table, .shop-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    color: var(--text-main);
}

th {
    background-color: #252525;
    color: var(--text-muted);
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

tr:hover td {
    background-color: var(--bg-hover);
}

/* Empty State */
.empty-state-cell {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* Badges (Status) */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}
.bg-success { background-color: rgba(40, 167, 69, 0.2); color: var(--success); border: 1px solid var(--success); }
.bg-danger { background-color: rgba(220, 53, 69, 0.2); color: var(--danger); border: 1px solid var(--danger); }
.bg-secondary { background-color: rgba(108, 117, 125, 0.2); color: var(--text-muted); border: 1px solid var(--text-muted); }

/* =========================================
   8. COMPONENT: MODALS
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.customer-modal-container, 
.public-modal-content {
    background: var(--bg-card);
    color: var(--text-main);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* --- Customer Modal Specifics --- */
.customer-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.col-span-2 {
    grid-column: span 2;
}

/* Read-only text display (matches input look but flat) */
.text-value-display {
    padding: 10px;
    color: var(--text-main);
    background: var(--bg-body); /* Slightly darker than card to show it's a field */
    border-radius: 6px;
    border: 1px solid transparent; /* maintains layout alignment with inputs */
    min-height: 42px; /* Visual match for inputs */
    display: flex;
    align-items: center;
}

/* Scrollable Table Wrapper */
.modal-table-scroll {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

/* Helper to remove bottom margin from table inside wrapper */
.table-no-margin {
    margin-bottom: 0 !important;
}

/* Responsive Grid */
@media (max-width: 600px) {
    .customer-form-grid {
        grid-template-columns: 1fr;
    }
    .col-span-2 {
        grid-column: span 1;
    }
}

/* =========================================
   9. COMPONENT: DASHBOARD & CHARTS
   ========================================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.chart-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.chart-wrapper {
    height: 250px;
    position: relative;
}

/* Stat Cards */
.stat-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border-color);
}
.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

/* --- Dashboard Header --- */
.dashboard-header {
    margin-bottom: 25px;
}

.dashboard-header h1 {
    margin-bottom: 5px;
}

.dashboard-header p {
    color: var(--text-muted);
    margin: 0;
}

/* --- Stats Grid (1x4) --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* --- Summary Card (The Individual Stat Box) --- */
.summary-card {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.summary-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.summary-label {
    color: var(--text-muted);
    font-size: 0.9em;
    font-weight: 600;
}

.summary-icon {
    font-size: 1.2em;
}

.summary-value {
    font-size: 2em;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
    line-height: 1.1;
}

.summary-subtext {
    font-size: 0.8em;
    color: var(--text-muted);
}

/* Icon Colors */
.icon-success { color: var(--success); }
.icon-info { color: var(--info); }
.icon-warning { color: var(--warning); }
.icon-pink { color: #e83e8c; }

/* =========================================
   10. UTILITIES & SPECIFIC PAGES
   ========================================= */
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.w-100 { width: 100%; }
.text-mono { font-family: 'Courier New', monospace; }
.nowrap { white-space: nowrap; }

.section-description {
    color: var(--text-muted);
    margin-bottom: 20px;
    margin-top: 0;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

/* --- Shipment / Scanner Tab --- */
.shipment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}


.scanner-layout { display: flex; gap: 20px; }
.scanner-controls { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.scanner-status-box { margin-top: 15px; text-align: center; min-height: 24px; }
.scanner-log-panel {
    flex: 1;
    background: #000;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 6px;
    height: 150px;
    overflow-y: auto;
    font-family: monospace;
}

.scanner-box {
    background: var(--bg-card); /* Was --bg-secondary in inline */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color); /* Added for consistency */
}

.scanner-input {
    background-color: var(--bg-input); /* Was #1e1e2f */
    color: var(--text-main);
    font-size: 1.4em;
    padding: 20px;
    border: 3px solid var(--success);
    width: 100%;
    text-align: center;
    border-radius: 8px;
    transition: all 0.2s;
}

/* Disabled state for scanner input */
.scanner-input.disabled {
    border-color: var(--border-color);
    opacity: 0.5;
    cursor: not-allowed;
}

.scanner-select-large {
    font-size: 1.1em;
    padding: 15px;
    width: 100%;
    border: 2px solid var(--border-color);
    border-radius: 8px;
}

/* Log Panel Updates */
.scanner-log-container {
    max-height: 400px;
    overflow-y: auto;
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
}

.log-header {
    background: #111;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    font-weight: bold;
    color: var(--text-muted);
}

.log-entry {
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}
.log-success { color: #0f0; }
.log-error { color: #f00; }

/* Login Page */
.login-body {
    background-color: var(--bg-body);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.login-container {
    max-width: 400px;
    width: 100%;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.login-header h2 { color: var(--text-main); }
.login-header p { color: var(--text-muted); }
.log-content-area { padding: 10px; }
.log-time { opacity: 0.7; }
.log-sep { margin: 0 5px; }
.log-empty { color: #555; text-align: center; padding: 20px; }

/* --- New Utilities --- */
.text-right { text-align: right; }
.font-bold { font-weight: bold; }
.text-small-muted {
    font-size: 0.9em;
    color: var(--text-muted);
}

/* --- Form Row Layout (Used in Models & Shops) --- */
.form-row {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
    flex-wrap: wrap; /* responsive safety */
}

/* Messages */
.status-message {
    margin-top: 10px;
    font-size: 0.9em;
    color: var(--info);
    min-height: 20px; /* Prevents jumping */
}

/* --- Entry Tab Specifics --- */
.read-only-message {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.tab-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.textarea-short {
    height: 46px; /* Matches standard input height */
    min-height: 46px;
    resize: vertical;
}

.download-link {
    color: var(--info);
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.download-link:hover {
    text-decoration: underline;
    color: #138496;
}

/* --- Shops Tab Specifics --- */
.filter-group-row {
    background: var(--bg-card);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color); /* Added for consistency */
}

/* Flex utilities for inputs */
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

/* Table Action Column */
.col-action-center {
    width: 80px;
    text-align: center;
}

/* --- Shipment Tab Clean-up --- */

/* Step Headers */
.step-header { margin-top: 0; margin-bottom: 10px; }
.text-primary { color: var(--primary); }
.text-info { color: var(--info); }

/* Status Text Helpers */
.text-danger { color: var(--danger); }
.text-success-bold { color: var(--success); font-weight: bold; }

/* --- Common Layouts --- */
.page-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* =========================================
   11. DROPDOWNS & UTILITIES
   ========================================= */
/* --- Flex Headers (Used in Products & Search) --- */
.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.flex-gap-10 {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* --- Buttons --- */
.btn-outline-danger {
    background-color: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
}
.btn-outline-danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

/* --- Advanced Search Panel --- */
.advanced-search-panel {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.section-label {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-muted);
}

/* --- Dropdown Menus (Columns Toggle) --- */
.dropdown-wrapper {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 110%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    z-index: 100;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.dropdown-header {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.dropdown-item {
    display: block;
    padding: 5px;
    cursor: pointer;
}
.dropdown-item:hover {
    background-color: var(--bg-hover);
    border-radius: 4px;
}

/* --- Table Utilities --- */
.text-truncate {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================
   12. PROFILE PAGE
   ========================================= */

.hidden-input { display: none; }

   /* Main Layout */
.profile-container-width {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

/* Profile Card (Left & Right) */
.profile-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.profile-card-center {
    text-align: center;
}

/* Avatar Components */
.avatar-wrapper-lg {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
}

.avatar-circle-lg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-body); /* Was #1e1e2f */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    font-weight: bold;
    color: var(--text-muted);
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.avatar-circle-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-delete-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: transform 0.1s;
    color: white;
}
.avatar-delete-btn:hover {
    transform: scale(1.1);
}

/* Typography */
.profile-name-large {
    font-weight: bold;
    font-size: 1.1em;
}

/* Form Styles */
.input-dark {
    width: 100%;
    background: var(--bg-body); /* Was #111 */
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 6px;
    color: var(--text-main);
}

.input-disabled {
    width: 100%;
    background: var(--bg-input); /* Was #1e1e2f */
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Password Change Box */
.password-box {
    border: 1px solid var(--border-color);
    background: var(--bg-overlay-dark);
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn-lg-pad {
    padding: 12px 25px;
}

/* Standard Card Headers */
.card-header {
    margin-top: 0;
    color: var(--text-main);
}

.header-mb-20 { margin-bottom: 20px; }
.header-mb-5 { margin-bottom: 5px; }
.text-left { text-align: left; }

/* Password Section Specifics */
.password-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-main);
}

.password-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   13. ACTIVATION PAGE
   ========================================= */

/* Main Container - Centered like a login page but for product info */
.activation-body {
    background-color: var(--bg-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* The Product Card */
.activation-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    text-align: left;
}

.activation-card h1 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    color: var(--primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

/* Key-Value Info Rows */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row.border-none {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-weight: 500;
}

.info-value {
    font-weight: bold;
    color: var(--text-main);
    text-align: right;
}

/* Status Colors */
.text-success { color: var(--success); }
.text-muted { color: var(--text-muted); }

/* Active Status Details Box */
.active-status-details {
    background: rgba(40, 167, 69, 0.1); /* Light green tint */
    border: 1px solid var(--success);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Shop Selection Grid in Modal */
.shop-select-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-body);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.input-highlight {
    border-color: var(--primary);
    background-color: rgba(0, 123, 255, 0.05);
}

/* Confirmation Modal Theme */
.warning-theme {
    border-top: 5px solid var(--warning);
}

.warning-title {
    color: var(--warning);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
}

.warning-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Buttons Group */
.act-btn-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-end;
}

.btn-white-bg {
    background: white;
    color: black;
    border: none;
}
.btn-white-bg:hover {
    background: #e0e0e0;
}

.page-error-message {
    margin-top: 20px;
    color: var(--danger);
    background: rgba(220, 53, 69, 0.1);
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid var(--danger);
}

/* --- Activation Page Utilities --- */

/* Large Activation Button */
.btn-lg-activation {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 1.1em;
}

/* Address Textarea */
.textarea-address {
    min-height: 80px;
}

/* Small Modal (for Confirmation) */
.modal-sm {
    max-width: 500px;
}

/* =========================================
   14. LOGIN PAGE SPECIFICS
   ========================================= */

/* Login Header Text */
.login-header h2 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.login-header p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Error Message Box */
.login-error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9em;
    text-align: center;
}

/* Footer Text */
.login-footer {
    margin-top: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8em;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* Full Width Button for Login */
.btn-login-full {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    justify-content: center;
}