/* Dashboard Common Styles */

/* ====================================
   GLOBAL FONT SIZE CONTROL
   Change this value to adjust all table font sizes
   ==================================== */
:root {
    --dashboard-table-font-size: 13px;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* Table Styles */
.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
    transition: background-color 0.2s ease;
}

.table-compact td {
    padding: 0.25rem 0.5rem !important;
    line-height: 1.2;
    vertical-align: middle;
    font-size: var(--dashboard-table-font-size);
}

.table-compact th {
    font-size: var(--dashboard-table-font-size);
    padding: 0.35rem 0.5rem !important;
}

.table-compact small {
    font-size: calc(var(--dashboard-table-font-size) * 0.9);
}

/* Badge Styles */
.badge.bg-primary-subtle {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    font-weight: 500;
}

.badge.bg-success-subtle {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    font-weight: 500;
}

.badge.bg-warning-subtle {
    background-color: rgba(255, 193, 7, 0.15);
    color: #cc7a00;
    font-weight: 500;
}

.badge.bg-info-subtle {
    background-color: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
    font-weight: 500;
}

/* Card Enhancements */
.card.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    padding: 0.5rem 1rem;
}

/* Add Order Button */
.add-order-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: #28a745 !important;
    font-weight: 600;
    padding: 0.4rem 1rem !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.add-order-btn:hover {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    color: #20c997 !important;
}

.add-order-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.2);
}

.add-order-btn i {
    font-size: 1rem;
    vertical-align: middle;
}

/* Responsive Utilities */
@media (max-width: 991.98px) {
    .table-compact td {
        padding: 0.5rem !important;
    }
}

/* Fixed Table Layout for Order Details */
.food-orders-table {
    table-layout: fixed;
    width: 100%;
}

.food-orders-table .col-order-id {
    width: 10%;
}

.food-orders-table .col-store {
    width: 10%;
}

.food-orders-table .col-user {
    width: 10%;
}

.food-orders-table .col-address2 {
    width: 20%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.food-orders-table .col-item {
    width: 35%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.food-orders-table .col-action {
    width: 15%;
}

.food-orders-table td {
    overflow: hidden;
    text-overflow: ellipsis;
}

.food-orders-table td small {
    display: block;
    word-wrap: break-word;
}

/* Modern Order Table Enhancements */
.food-orders-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.food-orders-table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    font-size: var(--dashboard-table-font-size);
    letter-spacing: 0.5px;
}

.food-orders-table tbody tr.order-row {
    border-bottom: 1px solid #f0f0f0;
}

.food-orders-table tbody td {
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
}

/* Order ID Badge */
.order-id-badge .badge {
    font-size: var(--dashboard-table-font-size);
    padding: 0.35rem 0.65rem;
    font-weight: 600;
    border-radius: 6px;
}

/* Info Sections */
.store-info, .user-info, .address-info, .items-list {
    font-size: var(--dashboard-table-font-size);
    line-height: 1.6;
}

.address-info strong {
    color: #495057;
    font-size: var(--dashboard-table-font-size);
}

/* Action Cell */
.action-cell {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

/* Enhanced Badges */
.badge {
    font-weight: 500;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
}

.bg-primary-subtle {
    background-color: rgba(13, 110, 253, 0.1) !important;
    color: #0d6efd !important;
}

.bg-info-subtle {
    background-color: rgba(13, 202, 240, 0.1) !important;
    color: #0dcaf0 !important;
}

/* Button Enhancements */
.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: var(--dashboard-table-font-size);
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline-dark:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
    border: none;
    color: white;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 202, 240, 0.3);
}

/* Card Enhancements */
.card.border-0 {
    border-radius: 12px;
    overflow: hidden;
}

.card-header.bg-white {
    border-bottom: 2px solid #f0f0f0;
}

.card-header h5 {
    color: #ffffff;
}

.card-footer.bg-white {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

/* Table Responsive */
.table-responsive {
    border-radius: 0;
}

/* Icon Styling */
.bx {
    vertical-align: middle;
}

/* Service Orders Column Widths */
.service-orders-table {
    font-size: var(--dashboard-table-font-size);
}

.service-orders-table .col-order-id {
    width: 10%;
}

.service-orders-table .col-user {
    width: 10%;
}

.service-orders-table .col-service {
    width: 10%;
}

.service-orders-table .col-address2 {
    width: 20%;
}

.service-orders-table .col-item {
    width: 35%;
}

.service-orders-table .col-action {
    width: 15%;
}

/* Login Page Background */
.login-page-body {
    background-image: url('/assets/img/backgrounds/1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.login-page-body .authentication-wrapper {
    background: transparent;
}
