/* Rock 30 Games - Wholesale Platform - Complete Styles */

/* ============ RESET & BASE ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

/* ============ HEADER ============ */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo h1 {
    font-size: 2em;
    margin-bottom: 5px;
}

.tagline {
    font-size: 1em;
    opacity: 0.9;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid white;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: white;
    color: #667eea;
}

/* Cart Icon */
.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.2s;
}

.cart-icon-wrapper:hover {
    transform: scale(1.1);
}

.cart-icon {
    font-size: 2em;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
}

.cart-badge.active {
    opacity: 1;
}

/* Navigation */
nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.3);
}

.nav-btn.active {
    background: white;
    color: #667eea;
    font-weight: bold;
}

/* ============ ANNOUNCEMENT BANNER ============ */
.announcement-banner {
    background: #ffd93d;
    color: #333;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border-bottom: 3px solid #ffc107;
}

/* ============ VIEWS ============ */
.view {
    display: none;
    padding: 30px;
}

.view.active {
    display: block;
}

.view.content-locked {
    filter: blur(5px);
    pointer-events: none;
}

/* ============ SEARCH SECTION ============ */
.search-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.search-section h2 {
    margin-bottom: 20px;
    color: #667eea;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
}

.search-box button {
    background: #667eea;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s;
}

.search-box button:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.filters select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    background: white;
    cursor: pointer;
}

/* ============ RESULTS ============ */
.results-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
}

/* Item Row Compact */
.item-row-compact {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.item-row-compact:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.item-row-header {
    margin-bottom: 15px;
}

.item-row-info h3 {
    color: #333;
    margin-bottom: 5px;
}

.item-row-info p {
    color: #666;
    font-size: 0.95em;
}

.condition-price {
    font-size: 1.8em;
    font-weight: bold;
    color: #4caf50;
}

.qty-input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.qty-input-wrapper label {
    font-size: 0.85em;
    color: #666;
    font-weight: bold;
}

.condition-qty-input {
    width: 80px;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 5px;
    text-align: center;
    font-size: 1em;
}

.item-row-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.item-row-total {
    text-align: center;
}

.total-label {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
}

.total-amount {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    color: #667eea;
}

.compact-add-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s;
    width: 100%;
    max-width: 200px;
}

.compact-add-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ============ CART SIDEBAR ============ */
.cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cart-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar-sliding {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: white;
    z-index: 999;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    transition: right 0.3s ease;
}

.cart-sidebar-sliding.active {
    right: 0;
}

.cart-sidebar-header {
    background: #667eea;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px 10px;
}

.cart-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.cart-item-info h4 {
    margin-bottom: 5px;
    color: #333;
}

.cart-item-info p {
    color: #666;
    font-size: 0.9em;
    margin: 3px 0;
}

.cart-item-controls {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.qty-btn {
    background: #667eea;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2em;
}

.qty-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.remove-btn {
    background: #ff4757;
    color: white;

    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
}

.cart-sidebar-footer {
    padding: 20px;
    border-top: 2px solid #e0e0e0;
    background: #f9f9f9;
}

.cart-total-display {
    margin-bottom: 15px;
    text-align: right;
}

.cart-total-display h3 {
    color: #333;
    font-size: 1.5em;
}

.cart-total-display span {
    color: #4caf50;
}

.cart-buttons {
    display: flex;
    gap: 10px;
}

/* ============ BUTTONS ============ */
.submit-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s;
    flex: 1;
}

.submit-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.secondary-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
    flex: 1;
}

.secondary-btn:hover {
    background: #5a6268;
}

.view-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
}

.view-btn:hover {
    background: #764ba2;
}

/* ============ MODAL ============ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2em;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #667eea;
}

.modal-content label {
    display: block;
    margin: 15px 0 5px;
    font-weight: bold;
    color: #333;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
}

.modal-content textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============ ORDERS ============ */
.order-filters {
    margin-bottom: 20px;
}

.order-filters select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
}

.order-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

.order-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.collapsible-order {
    cursor: pointer;
}

.collapsible-order.expanded {
    border-color: #667eea;
}

.order-card-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
}

.order-header-left {
    display: flex;
    gap: 15px;
    align-items: center;
}

.collapse-icon {
    font-size: 1.2em;
    color: #667eea;
    transition: transform 0.3s;
}

.collapsible-order.expanded .collapse-icon {
    transform: rotate(180deg);
}

.order-card-header h4 {
    margin-bottom: 5px;
    color: #333;
}

.order-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    display: inline-block;
}

.order-status.submitted {
    background: #fff3cd;
    color: #856404;
}

.order-status.invoiced {
    background: #d1ecf1;
    color: #0c5460;
}

.order-status.paid {
    background: #d4edda;
    color: #155724;
}

.order-status.shippedcompleted {
    background: #b8daff;
    color: #004085;
}

/* Legacy status classes for backwards compatibility */
.order-status.arrived {
    background: #d1ecf1;
    color: #0c5460;
}

.order-status.pending-payment {
    background: #f8d7da;
    color: #721c24;
}

.order-status.paid-completed {
    background: #d4edda;
    color: #155724;
}

.order-status.abandoned {
    background: #f5c6cb;
    color: #721c24;
}

.order-status.incomplete {
    background: #e7e7e7;
    color: #383d41;
}

.order-card-body {
    padding: 20px;
}

.admin-order-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.admin-order-table th,
.admin-order-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.admin-order-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.admin-order-table tr:hover {
    background: #f9f9f9;
}

.qty-input {
    width: 70px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.total-price-cell {
    font-weight: bold;
    color: #4caf50;
}

.remove-item-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

.order-subtotal-row {
    background: #f5f5f5;
    font-weight: bold;
}

.adjustment-row {
    background: #f0f8ff;
}

.amount-input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95em;
}

.adjustment-select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.order-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.edit-btn {
    background: #ffa500;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* ============ ACCOUNT ============ */
.account-section {
    max-width: 800px;
    margin: 0 auto;
}

.account-info-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.account-info-card h3 {
    color: #667eea;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-label {
    font-weight: 600;
    color: #666;
    width: 120px;
}

.info-value {
    color: #333;
}

.account-form-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
}

.account-form-card h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.account-form-card > p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.form-section label {
    display: block;
    margin: 15px 0 5px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.form-section input[type="text"],
.form-section input[type="tel"],
.form-section input[type="email"],
.form-section select,
.form-section textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-section input:focus,
.form-section select:focus,
.form-section textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-section textarea {
    resize: vertical;
    min-height: 80px;
}


.form-section small {
    display: block;
    color: #999;
    font-size: 0.85em;
    margin-top: 5px;
}

/* Grid layouts for form fields */
.form-section > div[style*="grid"] {
    display: grid;
    gap: 15px;
}

/* Checkbox styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
}

.checkbox-label strong {
    font-weight: 600;
    color: #333;
}

/* Pallet options indentation */
#pallet-options {
    margin-left: 30px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

#pallet-options label {
    margin-top: 10px;
}

/* Form buttons */
.account-form-card button {
    margin-top: 20px;
}

.account-form-card > div[style*="flex"] {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.account-form-card button[type="submit"] {
    flex: 1;
}

/* ============ ADMIN ============ */
.admin-section {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-login {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    margin: 50px auto;
    text-align: center;
}

.admin-login input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.admin-login button {
    width: 100%;
}

.admin-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
}

.admin-controls {
    margin-bottom: 30px;
}

.admin-controls h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.admin-controls button {
    margin-right: 10px;
    margin-bottom: 10px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-card h4 {
    margin-bottom: 10px;
    font-size: 1em;
    opacity: 0.9;
}

.stat-card p {
    font-size: 2.5em;
    font-weight: bold;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.admin-tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-tab-btn:hover {
    color: #667eea;
}

.admin-tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* ============ USER MANAGEMENT ============ */
.user-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.user-card.collapsible-user {
    padding: 0;
}

.user-card.collapsible-user .user-card-header {
    padding: 20px;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 0;
    border-bottom: none;
}

.user-card.collapsible-user .user-card-header:hover {
    background: #f9f9f9;
}

.user-card.expanded {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.user-card.collapsible-user.expanded .user-card-header {
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 15px;
}

.user-card-body {
    padding: 0 20px 20px 20px;
}

.user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.user-card-header h4 {
    margin: 0 0 5px 0;
    font-size: 1.3em;
    color: #333;
}

.collapse-icon {
    font-size: 1.2em;
    color: #667eea;
    transition: transform 0.3s;
    user-select: none;
    min-width: 30px;
    text-align: center;
}

.admin-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: bold;
    margin-left: 10px;
}

.user-card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

.user-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 0.85em;
    color: #666;
    font-weight: 600;
}

.stat-value {
    font-size: 1.3em;
    color: #333;
    font-weight: bold;
}

.user-card-details {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.user-card-details h5 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #667eea;
}

.user-card-details p {
    margin: 5px 0;
    font-size: 0.95em;
    color: #333;
}

.user-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.user-orders-table {
    margin: 20px 0;
    overflow-x: auto;
}

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

.user-orders-table th,
.user-orders-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.user-orders-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.user-orders-table tr:hover {
    background: #f9f9f9;
}

/* ============ PRINT STYLES ============ */
.print-section {
    margin: 20px 0;
}

.print-section h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.print-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.print-table th,
.print-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.print-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.print-total {
    text-align: right;
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #333;
    color: #4caf50;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .container {
        padding: 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    nav {
        width: 100%;
    }
    
    .nav-btn {
        flex: 1;
        min-width: calc(50% - 5px);
    }
    
    .cart-sidebar-sliding {
        width: 100%;
        right: -100%;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .item-row-compact {
        padding: 15px;
    }
    
    .user-card-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .user-card-stats {
        grid-template-columns: 1fr;
    }
    
    .user-card-actions {
        flex-direction: column;
    }
    
    .user-card-actions button {
        width: 100%;
    }
    
    .admin-order-table {
        font-size: 0.85em;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .order-actions button {
        width: 100%;
    }
}

/* ============ LOADING STATE ============ */
.loading {
    text-align: center;
    padding: 40px;
    color: #667eea;
    font-size: 1.2em;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}