/* Rock 30 Games - Retail Platform 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 {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.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;
    font-size: 1.2em;
}

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

/* Conditions Grid */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.condition-card {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
}

.condition-card:hover {
    border-color: #667eea;
}

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

.condition-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

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

.condition-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

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

.qty-input-wrapper label {
    font-size: 0.75em;
    color: #666;
    font-weight: bold;
    text-transform: uppercase;
}

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

.condition-qty-input:disabled {
    background: #f5f5f5;
    color: #999;
}

.add-btn {
    flex: 1;
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

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

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

/* ============ 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:hover {
    background: #764ba2;
}

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

.remove-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
}

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

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

.cart-total-display h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cart-total-display span {
    color: #4caf50;
    font-size: 1.3em;
}

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

.cart-buttons button {
    flex: 1;
}

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

.secondary-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.secondary-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.submit-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s;
}

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

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

/* ============ MODALS ============ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

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

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

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

.modal-content form label {
    display: block;
    margin-bottom: 5px;
    margin-top: 15px;
    font-weight: 600;
    color: #333;
}

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

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

.modal-content form button {
    margin-top: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* ============ ORDERS ============ */
.orders-user-section {
    max-width: 800px;
    margin: 0 auto;
}

.order-filters {
    margin-bottom: 20px;
}

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

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

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

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

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

.order-header p {
    color: #666;
    font-size: 0.9em;
    margin: 0;
}

.order-status {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
}

.order-status.submitted {
    background: #e3f2fd;
    color: #1976d2;
}

.order-status.processing {
    background: #fff3e0;
    color: #f57c00;
}

.order-status.shipped {
    background: #e8f5e9;
    color: #388e3c;
}

.order-status.paid {
    background: #e3f2fd;
    color: #1976d2;
}

.order-status.completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.order-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
}

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

.order-actions {
    display: flex;
    gap: 10px;
}

.order-actions button {
    padding: 8px 15px;
    font-size: 0.9em;
}

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

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

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

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

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

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

.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;
}

.form-section label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-section input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
}

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

/* ============ CONTACT ============ */
.contact-section {
    max-width: 700px;
    margin: 0 auto;
}

.contact-card, .guidelines-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
}

.contact-card h3, .guidelines-card h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.contact-card p {
    margin: 10px 0;
}

.contact-card a {
    color: #667eea;
}

.guidelines-card ul {
    padding-left: 20px;
}

.guidelines-card li {
    margin: 10px 0;
    line-height: 1.5;
}

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

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

.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;
    border: 2px solid #e0e0e0;
}

.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(180px, 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: 0.9em;
    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;
}

/* ============ 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;
}

/* ============ LOADING ============ */
.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: '...'; }
}

/* ============ 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;
    }
    
    .conditions-grid {
        grid-template-columns: 1fr;
    }
    
    .order-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .order-summary {
        flex-direction: column;
        gap: 5px;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .order-actions button {
        width: 100%;
    }
}

/* ============ ADMIN ORDER TABLE STYLES ============ */

.collapsible-order {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.collapsible-order .order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background: #f8f9fa;
    transition: background 0.2s;
}

.collapsible-order .order-card-header:hover {
    background: #e9ecef;
}

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

.order-header-right {
    text-align: right;
}

.collapse-icon {
    font-size: 1.2em;
    color: #666;
    transition: transform 0.2s;
}

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

.order-card-body {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

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

.admin-order-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    font-size: 0.9em;
}

.admin-order-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.admin-order-table .item-cell {
    max-width: 250px;
}

.admin-order-table .item-cell small {
    display: block;
    color: #666;
    margin-top: 3px;
}

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

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

.admin-order-table .order-subtotal-row {
    background: #f8f9fa;
    font-weight: bold;
}

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

.remove-item-btn:hover {
    background: #d32f2f;
}

.condition-select {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
    background: white;
    cursor: pointer;
    min-width: 120px;
}

.condition-select:focus {
    outline: none;
    border-color: #667eea;
}

.price-input {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: right;
}

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

/* ============ ADJUSTMENTS STYLES ============ */

.adjustments-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
}

.adjustments-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 0.95em;
}

.adjustments-table th {
    background: #f0f0f0;
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.adjustments-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.adjustments-table .positive-amount {
    color: #4caf50;
    font-weight: bold;
}

.adjustments-table .negative-amount {
    color: #f44336;
    font-weight: bold;
}

.add-adjustment-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 10px;
}

.adj-input {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9em;
}

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

.adj-select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9em;
    background: white;
    min-width: 120px;
}

.order-grand-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 1.2em;
    font-weight: bold;
}

.grand-total-amount {
    font-size: 1.5em;
}

.order-notes {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 10px 0;
}

.order-tracking {
    padding: 10px 15px;
    background: #e8f5e9;
    border-radius: 6px;
    color: #2e7d32;
    margin: 10px 0;
    font-size: 0.95em;
}

.order-tracking i {
    margin-right: 8px;
}

.order-adjustments-note {
    padding: 8px 15px;
    background: #fff3e0;
    border-radius: 6px;
    color: #f57c00;
    margin: 10px 0;
    font-size: 0.9em;
}

.order-adjustments-note i {
    margin-right: 8px;
}

.tracking-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.tracking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.tracking-btn i {
    margin-right: 6px;
}

.order-tracking-info {
    background: #e3f2fd;
    border-left: 4px solid #667eea;
}

/* ============ ROW TOTAL STYLES ============ */

.row-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    margin-top: 15px;
    border-radius: 0 0 10px 10px;
}

.row-total-label {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

.row-total-amount {
    font-size: 1.4em;
    font-weight: bold;
    color: #4caf50;
}

/* ============ USER MANAGEMENT STYLES ============ */

.user-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    overflow: hidden;
}

.user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

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

.user-card-header h4 {
    margin: 0;
    font-size: 1.1em;
}

.admin-badge {
    background: #667eea;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    margin-left: 10px;
    vertical-align: middle;
}

.user-card-body {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
}

.user-card-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

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

.user-stat .stat-label {
    font-size: 0.85em;
    color: #666;
    text-transform: uppercase;
}

.user-stat .stat-value {
    font-size: 1.4em;
    font-weight: bold;
    color: #4caf50;
}

.user-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.user-card-details {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.user-card-details h5 {
    margin: 0 0 12px 0;
    font-size: 1em;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-card-details h5 i {
    color: #667eea;
}

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

.user-card-actions {
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.user-card-actions .view-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
}

.user-card-actions .view-btn:hover {
    background: #5a6fd6;
}

@media (max-width: 768px) {
    .user-info-grid {
        grid-template-columns: 1fr;
    }
    
    .user-card-stats {
        flex-wrap: wrap;
    }
}