/* Modern Clean Login Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #f5f7fa;
}

/* Login Page Styles */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 12px;
    padding: 48px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.login-card h1 {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 32px;
    text-align: center;
    letter-spacing: -0.3px;
}


.login-field {
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.login-field input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
    color: #1a1a1a;
    font-size: 15px;
    transition: all 0.2s ease;
}

.login-field input:focus {
    outline: none;
    border-color: #5b5fc7;
    background: #ffffff;
}

.login-field input::placeholder {
    color: #999;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.remember-me label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin: 0;
}

.forgot-link {
    color: #5b5fc7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    height: 48px;
    background: #5b5fc7;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-bottom: 20px;
}

.submit-btn:hover {
    background: #4a4db0;
}

.submit-btn:active {
    transform: scale(0.98);
}

.signup-prompt {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.signup-prompt a {
    color: #5b5fc7;
    text-decoration: none;
    font-weight: 600;
}

.signup-prompt a:hover {
    text-decoration: underline;
}

/* Error message styling */
.text-red-600 {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 6px;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 36px 28px;
    }
    
    .login-card h1 {
        font-size: 20px;
    }
}

/* ===================================
   DASHBOARD STYLES
   =================================== */

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, transform 0.3s ease;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar.collapsed {
    width: 70px;
}

/* Mobile: Hide sidebar off-screen */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1001;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    /* On mobile, ignore collapsed state - always show full sidebar when open */
    .sidebar.collapsed {
        width: 260px;
    }
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    height: 64px;
    flex-shrink: 0;
}

.sidebar-header i {
    color: #5b5fc7;
    font-size: 24px;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-title {
    opacity: 0;
    width: 0;
}

/* Mobile: Always show sidebar title */
@media (max-width: 768px) {
    .sidebar.collapsed .sidebar-title {
        opacity: 1;
        width: auto;
    }
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
}

.nav-item:hover {
    background: #f5f7fa;
    color: #1a1a1a;
}

.nav-item.active {
    background: #f0f1ff;
    color: #5b5fc7;
    border-right: 3px solid #5b5fc7;
}

.nav-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    margin-left: 5px;
}

.nav-item svg,
.nav-item img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 5px;
}

.nav-item img.icon-lg {
    width: 35px;
    height: 35px;
    margin-left: -5px;
    margin-right: -1px;
}

.nav-item.nav-header {
    margin-top: 16px;
    cursor: default;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999 !important;
    opacity: 0.7;
    padding: 8px 16px;
    pointer-events: none;
}

.nav-item.nav-header:hover {
    background: transparent !important;
    color: #999 !important;
}

.nav-item span {
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.sidebar.collapsed .nav-item span {
    opacity: 0;
    width: 0;
}

/* Mobile: Always show nav item text */
@media (max-width: 768px) {
    .sidebar.collapsed .nav-item span {
        opacity: 1;
        width: auto;
    }
}

.nav-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 20px 8px 25px;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    overflow: hidden;
}

.nav-section-title i {
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.sidebar.collapsed .nav-section-title {
    opacity: 0;
    height: 0;
    padding: 0;
    width: 0;
}

/* Mobile: Always show section titles */
@media (max-width: 768px) {
    .sidebar.collapsed .nav-section-title {
        opacity: 1;
        height: auto;
        padding: 20px 20px 8px 25px;
        width: auto;
    }
}

.nav-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 12px 20px;
}

/* Main Wrapper */
.main-wrapper {
    flex: 1;
    margin-left: 260px;
    transition: margin-left 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar.collapsed + .main-wrapper {
    margin-left: 70px;
}

/* Mobile: Full width content */
@media (max-width: 768px) {
    .main-wrapper {
        margin-left: 0 !important;
    }
}

/* Dashboard Header */
.dashboard-header {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
    overflow-x: hidden;
}

.header-content {
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 100%;
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 16px;
        gap: 12px;
    }
    
    .header-left {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .header-title {
        font-size: 18px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .header-right {
        flex-shrink: 0;
    }
}

.sidebar-toggle {
    background: transparent;
    border: none;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

/* Header responsive */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .header-subtitle {
        display: none;
    }
    
    .user-info {
        display: none;
    }
    
    .user-role-badge {
        display: none;
    }
    
    .logout-btn span {
        display: none;
    }
    
    .logout-btn {
        padding: 8px 12px !important;
    }
}

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

.header-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.header-subtitle {
    font-size: 14px;
    color: #666;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #5b5fc7;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.user-info i {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.user-role-badge {
    background: #f0f1ff;
    color: #5b5fc7;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
}

.logout-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.logout-btn span {
    white-space: nowrap;
}

/* Dashboard Main Content */
.dashboard-main {
    flex: 1;
    padding: 32px 24px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* Dashboard Cards */
.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.dashboard-card h1,
.dashboard-card h2 {
    color: #1a1a1a;
    margin: 0 0 8px;
}

.dashboard-card h1 {
    font-size: 28px;
    font-weight: 700;
}

.dashboard-card h2 {
    font-size: 20px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .dashboard-card {
        padding: 20px;
        border-radius: 8px;
    }
    
    .dashboard-card h1 {
        font-size: 22px !important;
    }
    
    .dashboard-card h2 {
        font-size: 18px !important;
    }
}

.dashboard-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .badge {
        padding: 3px 8px;
        font-size: 11px;
    }
}

.badge-primary {
    background: #f0f1ff;
    color: #5b5fc7;
}

.badge-secondary {
    background: #f5f5f5;
    color: #666;
}

.badge-success {
    background: #ecfdf5;
    color: #10b981;
}

.badge-success i {
    font-size: 14px;
}

.badge-inactive {
    background: #fef2f2;
    color: #ef4444;
}

.badge-inactive i {
    font-size: 14px;
}

/* Auth Page Alerts */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

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

.auth-alert i {
    font-size: 18px;
    flex-shrink: 0;
}

.auth-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.auth-alert-success i {
    color: #10b981;
}

.auth-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-alert-error i {
    color: #ef4444;
}

/* Alert Boxes */
.alert {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    border: 1px solid;
    position: relative;
    align-items: center;
}

@media (max-width: 768px) {
    .alert {
        padding: 14px;
        gap: 12px;
        border-radius: 8px;
        font-size: 14px;
    }
}

.alert::before,
.alert::after {
    content: none !important;
}

.alert-warning {
    background: #fff7ed;
    border-color: #fed7aa;
}

.alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
}

.alert-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.alert-warning .alert-icon {
    color: #f59e0b;
}

.alert-info .alert-icon {
    color: #3b82f6;
}

.alert-success .alert-icon {
    color: #10b981;
}

.alert-error .alert-icon {
    color: #ef4444;
}

.alert-content {
    flex: 1;
}

@media (max-width: 768px) {
    .alert-content h3 {
        font-size: 16px !important;
    }
    
    .alert-content p {
        font-size: 13px !important;
    }
}

.alert-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.alert-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Credentials Box */
.credentials-box {
    background: #fff;
    border: 2px solid #fbbf24;
    border-radius: 8px;
    padding: 16px;
    margin: 8px 0;
}

.credential {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.credential:last-child {
    margin-bottom: 0;
}

.credential .label {
    font-weight: 600;
    color: #1a1a1a;
    min-width: 120px;
}

@media (max-width: 768px) {
    .credentials-box {
        padding: 12px;
    }
    
    .credential {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .credential .label {
        min-width: auto;
        font-size: 13px;
    }
}

.credential .value {
    background: #fef3c7;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    letter-spacing: 1px;
    flex: 1;
}

@media (max-width: 768px) {
    .credential .value {
        padding: 8px 12px;
        font-size: 14px;
        word-break: break-all;
    }
}

.btn-copy {
    background: #f0f1ff;
    border: none;
    color: #5b5fc7;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-copy:hover {
    background: #5b5fc7;
    color: #fff;
    transform: translateY(-1px);
}

.btn-copy:active {
    transform: translateY(0);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

.btn-warning {
    background: #f59e0b;
    color: #ffffff;
}

.btn-warning:hover {
    background: #d97706;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 1px solid #f0f0f0;
}

@media (max-width: 480px) {
    .stat-card {
        padding: 20px 16px;
    }
    
    .stat-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 20px !important;
    }
    
    .stat-value {
        font-size: 28px !important;
    }
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #5b5fc7;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    margin-bottom: 12px;
}

.stat-icon.primary {
    background: #f0f1ff;
    color: #5b5fc7;
}

.stat-icon.secondary {
    background: #f5f5f5;
    color: #666;
}

.stat-content {
    width: 100%;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.quick-action-subtitle {
    font-size: 13px;
    color: #666;
}

/* Lists */
.pending-orders-list {
    margin: 12px 0;
    padding-left: 20px;
}

.pending-orders-list li {
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.order-date-label {
    color: #999;
    font-size: 13px;
}

.order-info-text {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

/* Utility Classes */
.inline {
    display: inline;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

/* ===================================
   FORM STYLES
   =================================== */

/* Page Container */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-container {
        padding: 0;
    }
}

/* Form Container */
.form-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1024px) {
    .form-container {
        grid-template-columns: 1fr;
    }
}

/* Form Card */
.form-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

@media (max-width: 768px) {
    .form-card {
        padding: 20px;
        border-radius: 8px;
    }
}

/* Header with Back Button */
.header-with-back {
    display: flex;
    align-items: center;
    gap: 16px;
}

@media (max-width: 768px) {
    .header-with-back {
        gap: 12px;
    }
    
    .header-with-back h1 {
        font-size: 22px !important;
    }
    
    .header-with-back p {
        font-size: 13px !important;
    }
}

.back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 10px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .back-btn {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
}

.back-btn:hover {
    background: #5b5fc7;
    color: #ffffff;
}

/* Form Modern */
.form-modern {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (max-width: 768px) {
    .form-modern {
        gap: 24px;
    }
}

/* Form Section */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

@media (max-width: 768px) {
    .form-section-title {
        font-size: 15px;
        padding-bottom: 10px;
    }
}

.form-section-title i {
    color: #5b5fc7;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 768px) {
    .form-label {
        font-size: 13px;
    }
}

.required {
    color: #e53e3e;
}

.form-help {
    font-size: 12px;
    color: #666;
}

@media (max-width: 768px) {
    .form-help {
        font-size: 11px;
    }
}

/* Input with Icon */
.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.input-with-icon .form-control {
    padding-left: 44px;
}

/* Form Control */
.form-control {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 15px;
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .form-control {
        height: 46px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0 14px;
    }
    
    .input-with-icon .form-control {
        padding-left: 42px;
    }
}

.form-control:focus {
    outline: none;
    border-color: #5b5fc7;
    box-shadow: 0 0 0 3px rgba(91, 95, 199, 0.1);
}

.form-control.is-invalid {
    border-color: #e53e3e;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* Invalid Feedback */
.invalid-feedback {
    font-size: 13px;
    color: #e53e3e;
    font-weight: 500;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    padding-top: 8px;
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: #5b5fc7;
    color: #ffffff;
}

.btn-primary:hover {
    background: #4a4db0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 95, 199, 0.3);
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
    color: #1a1a1a;
}

.btn-success {
    background: #10b981;
    color: #ffffff;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: #ef4444;
    color: #ffffff;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
}

.btn-info:hover {
    background: linear-gradient(135deg, #5568d3 0%, #65398b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-warning {
    background: #f59e0b;
    color: #ffffff;
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .btn-lg {
        padding: 12px 24px;
        font-size: 15px;
    }
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .btn-sm {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Info Card */
.info-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .info-card {
        border-radius: 8px;
    }
}

.info-card-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .info-card-header {
        padding: 16px;
    }
}

.info-card-header i {
    color: #5b5fc7;
    font-size: 20px;
}

.info-card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

@media (max-width: 768px) {
    .info-card-header h3 {
        font-size: 15px;
    }
}

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

@media (max-width: 768px) {
    .info-card-body {
        padding: 16px;
    }
}

.info-card-body p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .info-card-body p {
        font-size: 13px;
    }
}

.info-card-body ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.info-card-body li {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .info-card-body li {
        font-size: 13px;
    }
}

/* Alert Info */
.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-info i {
    color: #3b82f6;
    flex-shrink: 0;
}

.alert-info small {
    color: #1e40af;
    font-size: 13px;
}

/* Card responsive */
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .card {
        border-radius: 8px;
    }
}

/* ===================================
   PAGE HEADER MODERN
   =================================== */


.page-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

@media (max-width: 768px) {
    .page-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .page-header-modern h1 {
        font-size: 22px !important;
    }
    
    .page-header-modern p {
        font-size: 13px !important;
    }
    
    .page-header-modern .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================
   EMPTY STATE MODERN
   =================================== */

.empty-state-modern {
    background: #ffffff;
    border-radius: 16px;
    padding: 64px 32px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

@media (max-width: 768px) {
    .empty-state-modern {
        padding: 48px 20px;
        border-radius: 8px;
    }
}

.empty-state-modern .empty-icon {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.empty-state-modern .empty-icon i {
    font-size: 36px;
    color: #5b5fc7;
}

.empty-state-modern h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.empty-state-modern p {
    font-size: 15px;
    color: #666;
    margin: 0 0 24px;
}

/* ===================================
   TABLE MODERN
   =================================== */

.table-modern thead th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    border-bottom: 2px solid #e0e0e0;
    padding: 16px;
}

.table-modern tbody tr {
    transition: background-color 0.2s ease;
}

.table-modern tbody tr:hover {
    background: #f8f9fa;
}

.table-modern tbody td {
    padding: 16px;
    vertical-align: middle;
}

/* Badge Variations */
.badge-code {
    background: #e0e7ff;
    color: #4338ca;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.badge-neutral {
    background: #f3f4f6;
    color: #374151;
    font-weight: 500;
}

/* Order Status Badges */
.badge-pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.2);
    border: 1px solid #fbbf24;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.badge-pending:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(251, 191, 36, 0.3);
}

.badge-processed {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.badge-processed:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.badge-cancelled {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.badge-cancelled:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

/* Badge icon styling */
.badge-pending i,
.badge-processed i,
.badge-cancelled i {
    font-size: 0.875em;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-buttons .btn-sm {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .action-buttons {
        gap: 6px;
    }
    
    .action-buttons .btn-sm {
        flex: 1 1 auto;
        min-width: auto;
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .action-buttons .btn-sm i {
        margin-right: 4px;
    }
    
    /* Stack buttons vertically on very small screens */
    @media (max-width: 480px) {
        .action-buttons {
            flex-direction: column;
        }
        
        .action-buttons .btn-sm {
            width: 100%;
            justify-content: center;
        }
    }
}

/* ===================================
   PAGINATION MODERN
   =================================== */

.pagination-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.pagination-modern .pagination-info {
    font-size: 15px;
    color: #666;
}

.pagination-modern .pagination-info strong {
    color: #1a1a1a;
    font-weight: 600;
}

@media (max-width: 768px) {
    .pagination-modern {
        flex-direction: column;
        gap: 12px;
    }
}

/* Dashboard Sections */
.dashboard-section {
    margin-bottom: 32px;
}

.dashboard-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .dashboard-section {
        margin-bottom: 24px;
    }
    
    .dashboard-section h2 {
        font-size: 18px;
    }
}

.page-header {
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .page-header {
        margin-bottom: 24px;
    }
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 24px;
    }
}
}

.text-muted {
    color: #666;
    font-size: 14px;
}

@media (max-width: 768px) {
    .text-muted {
        font-size: 13px;
    }
}

/* Card Styles */
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.card-body {
    padding: 24px;
}

@media (max-width: 768px) {
    .card-body {
        padding: 16px;
    }
}

.card-footer {
    padding: 16px 24px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .table-responsive {
        margin: 0 -16px;
        padding: 0 16px;
        /* Add scroll shadow indicator */
        background: 
            linear-gradient(to right, white 30%, rgba(255,255,255,0)),
            linear-gradient(to right, rgba(255,255,255,0), white 70%) 0 100%,
            radial-gradient(farthest-side at 0% 50%, rgba(0,0,0,.1), rgba(0,0,0,0)),
            radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.1), rgba(0,0,0,0)) 0 100%;
        background-repeat: no-repeat;
        background-color: white;
        background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
        background-attachment: local, local, scroll, scroll;
    }
    
    .table-responsive table {
        min-width: 800px;
    }
}

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

.table thead th {
    text-align: left;
    padding: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
    .table thead th {
        padding: 12px 8px;
        font-size: 11px;
    }
}

.table tbody td {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .table tbody td {
        padding: 12px 8px;
        font-size: 13px;
    }
}

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

.table tbody tr:hover {
    background: #f8f9fa;
}

.text-warning {
    color: #f59e0b;
    font-weight: 600;
}

/* Quick Actions / Action Cards */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.quick-actions-wide {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (max-width: 768px) {
    .quick-actions,
    .quick-actions-wide {
        grid-template-columns: 1fr;
    }
}

.action-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

@media (max-width: 768px) {
    .action-card {
        padding: 16px;
        border-radius: 8px;
    }
    
    .action-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 20px !important;
    }
    
    .action-text h3 {
        font-size: 15px !important;
    }
    
    .action-text p {
        font-size: 12px !important;
    }
}

.action-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #5b5fc7;
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.action-icon.primary {
    background: #f0f1ff;
    color: #5b5fc7;
}

.action-text h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.action-text p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

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

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

.section-header h2 {
    margin: 0;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #666;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 16px 0 8px;
}

.empty-state p {
    color: #666;
    margin-bottom: 20px;
}

/* Metadata Cards */
.metadata-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.metadata-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.2s ease;
}

.metadata-card:hover {
    border-color: #5b5fc7;
    box-shadow: 0 4px 12px rgba(91, 95, 199, 0.1);
    transform: translateY(-2px);
}

.metadata-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.metadata-content {
    flex: 1;
    min-width: 0;
}

.metadata-label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.metadata-value {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.metadata-time {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .metadata-cards {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

/* Row States */
.row-inactive {
    opacity: 0.6;
    background: #f8f9fa;
}

.row-inactive:hover {
    opacity: 0.75;
}

/* Responsive Text Utilities */
@media (max-width: 768px) {
    .hide-text-mobile {
        font-size: 0;
    }
    
    .hide-text-mobile i {
        font-size: 14px;
    }
}

/* ===================================
   LOCATION SEARCH & DROPDOWN
   =================================== */

.location-search-container {
    position: relative;
}

.location-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
}

@media (max-width: 768px) {
    .location-dropdown {
        max-height: 300px;
        border-radius: 6px;
    }
}

.location-option {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}

@media (max-width: 768px) {
    .location-option {
        padding: 10px 14px;
        font-size: 14px;
    }
}

.location-option:last-child {
    border-bottom: none;
}

.location-option:hover {
    background: #f9fafb;
}

.location-option.selected {
    background: #f0f0ff;
}

.location-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin: 0 8px 8px 0;
    vertical-align: top;
}

@media (max-width: 768px) {
    .location-chip {
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 13px;
        width: 100%;
        margin: 0 0 8px 0;
    }
}

.location-chip-name {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .location-chip-name {
        font-size: 13px;
    }
}

.location-chip-info {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .location-chip-info {
        font-size: 11px;
    }
}

.location-chip-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s;
}

.location-chip-remove:hover {
    background: #fee2e2;
}

/* ===================================
   SCHEDULE / CALENDAR STYLES
   =================================== */

.schedule-checkbox {
    margin-top: 2px;
    cursor: pointer;
}

/* View toggle buttons */
.schedule-view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.schedule-view-toggle .btn {
    min-width: 80px;
}

/* Schedule navigation controls */
.schedule-navigation {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

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

/* Schedule filters */
.schedule-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

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

/* Calendar table */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-table thead th {
    background: #f8fafc;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    font-size: 14px;
}

.calendar-table tbody td {
    padding: 8px;
    vertical-align: top;
    border: 1px solid #e2e8f0;
    min-height: 100px;
}

.calendar-date {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.calendar-entry {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 4px;
    padding: 6px 8px;
    margin-bottom: 6px;
    font-size: 13px;
}

.calendar-entry:last-child {
    margin-bottom: 0;
}

.weekend-day {
    background-color: #fef3c7 !important;
}

.today-date {
    background-color: #dbeafe !important;
}

/* Month view grid */
.month-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e2e8f0;
}

.month-day {
    background: white;
    padding: 8px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
}

.month-day-number {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

/* Responsive schedule navigation */
@media (max-width: 768px) {
    .content h1 {
        font-size: 24px !important;
    }
    
    .content p {
        font-size: 14px !important;
    }
    
    /* Page header with button */
    .content > div[style*="margin-bottom: 32px"] > div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    
    .content > div[style*="margin-bottom: 32px"] h1 {
        font-size: 22px !important;
    }
    
    .content > div[style*="margin-bottom: 32px"] .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* View toggle vertically stacked */
    .schedule-view-toggle {
        flex-direction: column;
    }
    
    .schedule-view-toggle .btn {
        width: 100%;
    }
    
    /* Stack navigation controls */
    .schedule-navigation {
        flex-direction: column;
        align-items: stretch;
    }
    
    .schedule-nav-buttons {
        justify-content: space-between;
    }
    
    .schedule-nav-buttons h2 {
        font-size: 18px !important;
        margin: 0 !important;
    }
    
    /* Stack filters vertically */
    .schedule-filters {
        flex-direction: column;
    }
    
    .schedule-filter-group {
        width: 100%;
    }
    
    .schedule-filter-group select,
    .schedule-filter-group input {
        width: 100%;
    }
    
    /* Calendar table scrolling */
    .calendar-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -20px;
        padding: 0 20px;
    }
    
    .calendar-table {
        min-width: 800px;
    }
    
    .calendar-table thead th {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    .calendar-table tbody td {
        padding: 6px;
        font-size: 12px;
    }
    
    .calendar-date {
        font-size: 12px;
    }
    
    .calendar-entry {
        padding: 4px 6px;
        font-size: 11px;
    }
    
    /* Month view responsive */
    .month-calendar {
        gap: 2px;
    }
    
    .month-day {
        padding: 6px;
        min-height: 80px;
    }
    
    .month-day-number {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    /* Smaller buttons on mobile */
    .schedule-nav-buttons .btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .schedule-nav-buttons h2 {
        font-size: 16px !important;
    }
    
    /* More compact calendar on small mobile */
    .calendar-table {
        min-width: 600px;
    }
    
    .calendar-table thead th {
        padding: 6px 2px;
        font-size: 11px;
    }
    
    .calendar-table tbody td {
        padding: 4px;
        min-height: 80px;
    }
    
    .calendar-date {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .calendar-entry {
        padding: 3px 5px;
        font-size: 10px;
        margin-bottom: 4px;
    }
    
    /* Month view more compact */
    .month-day {
        padding: 4px;
        min-height: 60px;
    }
    
    .month-day-number {
        font-size: 11px;
        margin-bottom: 4px;
    }
}

/* ===================================
   SCHEDULE CREATE/EDIT FORM
   =================================== */

/* Date range grid */
.schedule-date-range-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 600px;
}

@media (max-width: 768px) {
    /* Make form container full-width with less padding */
    .content > div[style*="max-width: 800px"] {
        padding: 20px !important;
    }
    
    /* Stack date inputs vertically on mobile */
    .schedule-date-range-grid,
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    /* Form action buttons */
    .content form > div[style*="justify-content: flex-end"] {
        flex-direction: column-reverse !important;
        gap: 10px !important;
    }
    
    .content form > div[style*="justify-content: flex-end"] .btn,
    .content form > div[style*="justify-content: flex-end"] a.btn {
        width: 100% !important;
        justify-content: center;
    }
    
    /* Info boxes */
    div[style*="background: #f0f9ff"],
    div[style*="background: #fff3cd"] {
        padding: 10px !important;
        font-size: 12px !important;
    }
    
    /* Select dropdowns full width */
    select.form-control[style*="max-width"] {
        max-width: none !important;
    }
}

@media (max-width: 480px) {
    /* Even tighter spacing on small screens */
    .content > div[style*="max-width: 800px"] {
        padding: 16px !important;
        border-radius: 8px !important;
    }
    
    /* Smaller form labels */
    .content label[style*="font-size: 15px"] {
        font-size: 14px !important;
    }
    
    /* Smaller helper text */
    .content p[style*="font-size: 13px"] {
        font-size: 12px !important;
    }
}

/* ===================================
   DESCALING PAGE
   =================================== */

.descaling-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 16px;
    border-left: 4px solid #10b981;
    transition: all 0.2s;
}

.descaling-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.descaling-card.overdue {
    border-left-color: #ef4444;
    background: linear-gradient(to right, #fef2f2 0%, white 100%);
}

.descaling-card.never {
    border-left-color: #f59e0b;
    background: linear-gradient(to right, #fffbeb 0%, white 100%);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

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

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

.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filter-tab {
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid transparent;
    background: #f3f4f6;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 14px;
}

.filter-tab:hover {
    background: #e5e7eb;
}

.filter-tab.active {
    background: #5b5fc7;
    color: white;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

.progress-fill.ok {
    background: linear-gradient(90deg, #10b981, #059669);
}

.progress-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.progress-fill.danger {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.btn-view-history {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    background: #3b82f6;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 500;
}

.btn-view-history:hover {
    background: #2563eb;
    color: white;
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    /* Adjust card grid for tablets */
    #locationsList[style*="grid-template-columns"] {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    /* Page padding */
    div[style*="padding: 24px"] {
        padding: 16px !important;
    }
    
    /* Header card */
    .content > div:first-child[style*="background: white"] h1 {
        font-size: 22px !important;
    }
    
    .content > div:first-child[style*="background: white"] h1 svg {
        width: 24px !important;
        height: 24px !important;
    }
    
    .content > div:first-child[style*="background: white"] p {
        font-size: 14px !important;
    }
    
    /* Header flex layout */
    .content > div:first-child[style*="background: white"] > div[style*="display: flex"] {
        flex-direction: column !important;
    }
    
    .content > div:first-child[style*="background: white"] div[style*="text-align: right"] {
        text-align: left !important;
    }
    
    /* Statistics grid - stack on mobile */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(220px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    /* Stat cards */
    div[style*="background: linear-gradient(135deg"] {
        padding: 20px !important;
    }
    
    div[style*="background: linear-gradient(135deg"] div[style*="font-size: 36px"] {
        font-size: 28px !important;
    }
    
    /* Manager filter */
    div[style*="min-width: 250px"] {
        min-width: 100% !important;
    }
    
    /* Filter tabs - scroll horizontally */
    .filter-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding: 12px !important;
    }
    
    .filter-tab {
        white-space: nowrap;
        padding: 8px 16px !important;
        font-size: 13px !important;
        flex-shrink: 0;
    }
    
    /* Location cards grid */
    #locationsList[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    /* Descaling cards */
    .descaling-card {
        padding: 16px !important;
    }
    
    .descaling-card h3 {
        font-size: 15px !important;
        flex-wrap: wrap !important;
    }
    
    .btn-view-history {
        font-size: 12px !important;
        padding: 5px 10px !important;
    }
    
    /* Status badge */
    .status-badge {
        font-size: 11px !important;
        padding: 5px 10px !important;
    }
    
    /* Info boxes inside cards */
    .descaling-card div[style*="background: #f8fafc"] {
        padding: 8px 10px !important;
    }
    
    .descaling-card div[style*="font-size: 12px"] {
        font-size: 11px !important;
    }
    
    .descaling-card div[style*="font-size: 13px"] {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    /* Tighter page padding */
    div[style*="padding: 24px"] {
        padding: 12px !important;
    }
    
    /* Header */
    .content > div:first-child[style*="background: white"] {
        padding: 16px !important;
    }
    
    .content > div:first-child[style*="background: white"] h1 {
        font-size: 20px !important;
    }
    
    /* Statistics cards even more compact */
    div[style*="background: linear-gradient(135deg"] {
        padding: 16px !important;
    }
    
    div[style*="background: linear-gradient(135deg"] div[style*="font-size: 36px"] {
        font-size: 24px !important;
    }
    
    div[style*="background: linear-gradient(135deg"] div[style*="font-size: 14px"] {
        font-size: 12px !important;
    }
    
    div[style*="background: linear-gradient(135deg"] div[style*="font-size: 12px"] {
        font-size: 11px !important;
    }
    
    /* Filter tabs smaller */
    .filter-tab {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    /* Cards more compact */
    .descaling-card {
        padding: 12px !important;
    }
    
    .descaling-card h3 {
        font-size: 14px !important;
    }
    
    .btn-view-history {
        font-size: 11px !important;
        padding: 4px 8px !important;
        gap: 4px !important;
    }
}

/* ===================================
   DESCALING HISTORY PAGE
   =================================== */

.history-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.history-table thead {
    background: linear-gradient(135deg, #5b5fc7 0%, #7b68ee 100%);
    color: white;
}

.history-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.history-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

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

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

.location-header {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

.location-header h2 {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 24px;
}

.location-header p {
    margin: 4px 0;
    color: #64748b;
    font-size: 14px;
}

.no-history {
    text-align: center;
    padding: 48px 24px;
    color: #94a3b8;
    font-size: 16px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.back-button:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateX(-4px);
}

@media (max-width: 768px) {
    /* Back button full width */
    .back-button {
        width: 100%;
        justify-content: center;
        padding: 12px 20px !important;
        margin-bottom: 16px !important;
    }
    
    /* Location header */
    .location-header {
        padding: 16px !important;
    }
    
    .location-header h2 {
        font-size: 20px !important;
    }
    
    .location-header p {
        font-size: 13px !important;
    }
    
    /* History table - wrap in scrollable container */
    .history-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .history-table table {
        min-width: 500px;
    }
    
    .history-table th,
    .history-table td {
        padding: 12px 10px !important;
        font-size: 13px !important;
    }
    
    .history-table th {
        white-space: nowrap;
    }
    
    /* No history message */
    .no-history {
        padding: 36px 16px !important;
        font-size: 14px !important;
    }
    
    .no-history i {
        font-size: 36px !important;
    }
}

@media (max-width: 480px) {
    /* Even more compact */
    .back-button {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
    
    .location-header {
        padding: 12px !important;
    }
    
    .location-header h2 {
        font-size: 18px !important;
    }
    
    .location-header p {
        font-size: 12px !important;
    }
    
    .history-table table {
        min-width: 450px;
    }
    
    .history-table th,
    .history-table td {
        padding: 10px 8px !important;
        font-size: 12px !important;
    }
    
    .no-history {
        padding: 24px 12px !important;
        font-size: 13px !important;
    }
}

/* ===================================
   FLOOR MACHINES PAGE
   =================================== */

.floor-machine-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 0;
    border-left: 4px solid #10b981;
    transition: all 0.2s;
}

.floor-machine-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.floor-machine-card.overdue {
    border-left-color: #ef4444;
    background: linear-gradient(to right, #fef2f2 0%, white 100%);
}

.floor-machine-card.soon {
    border-left-color: #f59e0b;
    background: linear-gradient(to right, #fffbeb 0%, white 100%);
}

.floor-machine-card.never {
    border-left-color: #9ca3af;
    background: linear-gradient(to right, #f9fafb 0%, white 100%);
}

.machine-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: #e0e7ff;
    color: #3730a3;
}

@media (max-width: 1024px) {
    /* Adjust card grid for tablets */
    #machinesList[style*="grid-template-columns"] {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    /* Page padding */
    div[style*="padding: 24px"] {
        padding: 16px !important;
    }
    
    /* Header card */
    .content > div:first-child[style*="background: white"] h1 {
        font-size: 22px !important;
    }
    
    .content > div:first-child[style*="background: white"] h1 svg {
        width: 24px !important;
        height: 24px !important;
    }
    
    .content > div:first-child[style*="background: white"] p {
        font-size: 14px !important;
    }
    
    /* Header flex - stack controls */
    .content > div:first-child[style*="background: white"] > div[style*="display: flex"] > div:last-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100%;
    }
    
    .content > div:first-child[style*="background: white"] > div[style*="display: flex"] > div:last-child .btn {
        width: 100%;
        margin-bottom: 12px;
    }
    
    .content > div:first-child[style*="background: white"] > div[style*="display: flex"] > div:last-child > div[style*="text-align: right"] {
        text-align: left !important;
        width: 100%;
    }
    
    /* Statistics grid */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(220px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    /* Stat cards */
    div[style*="background: linear-gradient(135deg"] {
        padding: 20px !important;
    }
    
    div[style*="background: linear-gradient(135deg"] div[style*="font-size: 36px"] {
        font-size: 28px !important;
    }
    
    /* Manager filter */
    div[style*="min-width: 250px"] {
        min-width: 100% !important;
    }
    
    /* Filter tabs */
    .filter-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap !important;
        padding: 12px !important;
    }
    
    .filter-tab {
        white-space: nowrap;
        padding: 8px 16px !important;
        font-size: 13px !important;
        flex-shrink: 0;
    }
    
    /* Machine cards grid */
    #machinesList[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    /* Machine cards */
    .floor-machine-card {
        padding: 16px !important;
    }
    
    .floor-machine-card h3 {
        font-size: 15px !important;
    }
    
    .machine-type-badge {
        font-size: 10px !important;
        padding: 3px 8px !important;
    }
    
    /* Status badge */
    .status-badge {
        font-size: 11px !important;
        padding: 5px 10px !important;
    }
    
    /* Booking info box */
    .floor-machine-card div[style*="background: #eff6ff"] {
        padding: 10px !important;
    }
    
    /* Action button grid */
    .floor-machine-card div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}

@media (max-width: 480px) {
    /* Tighter page padding */
    div[style*="padding: 24px"] {
        padding: 12px !important;
    }
    
    /* Header */
    .content > div:first-child[style*="background: white"] {
        padding: 16px !important;
    }
    
    .content > div:first-child[style*="background: white"] h1 {
        font-size: 20px !important;
    }
    
    /* Statistics cards */
    div[style*="background: linear-gradient(135deg"] {
        padding: 16px !important;
    }
    
    div[style*="background: linear-gradient(135deg"] div[style*="font-size: 36px"] {
        font-size: 24px !important;
    }
    
    div[style*="background: linear-gradient(135deg"] div[style*="font-size: 14px"] {
        font-size: 12px !important;
    }
    
    div[style*="background: linear-gradient(135deg"] div[style*="font-size: 12px"] {
        font-size: 11px !important;
    }
    
    /* Filter tabs */
    .filter-tab {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    /* Machine cards */
    .floor-machine-card {
        padding: 12px !important;
    }
    
    .floor-machine-card h3 {
        font-size: 14px !important;
    }
    
    /* Booking buttons */
    .floor-machine-card .btn-sm {
        font-size: 11px !important;
        padding: 6px 10px !important;
    }
}

/* ===================================
   FLOOR MACHINES MANAGE PAGE
   =================================== */

@media (max-width: 768px) {
    /* Page container */
    div[style*="max-width: 1200px"] {
        padding: 16px !important;
    }
    
    /* Header */
    div[style*="max-width: 1200px"] h1 {
        font-size: 22px !important;
    }
    
    div[style*="max-width: 1200px"] > div:first-child p {
        font-size: 14px !important;
    }
    
    /* Card containers */
    div[style*="max-width: 1200px"] > div > div[style*="background: white"] {
        padding: 16px !important;
    }
    
    div[style*="max-width: 1200px"] h3 {
        font-size: 18px !important;
    }
    
    /* Form grid - stack vertically */
    form div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    /* Form button container */
    form div[style*="justify-content: flex-end"] {
        justify-content: stretch !important;
    }
    
    form div[style*="justify-content: flex-end"] .btn {
        width: 100%;
    }
    
    /* Table wrapper for horizontal scroll */
    div[style*="overflow-x: auto"] {
        margin: 0 -16px;
        padding: 0 16px;
        -webkit-overflow-scrolling: touch;
    }
    
    div[style*="overflow-x: auto"] table {
        min-width: 800px;
    }
    
    /* Table cells */
    div[style*="overflow-x: auto"] th,
    div[style*="overflow-x: auto"] td {
        padding: 10px 8px !important;
        font-size: 13px !important;
    }
    
    div[style*="overflow-x: auto"] small {
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    /* Tighter page padding */
    div[style*="max-width: 1200px"] {
        padding: 12px !important;
    }
    
    /* Header */
    div[style*="max-width: 1200px"] h1 {
        font-size: 20px !important;
    }
    
    /* Cards */
    div[style*="max-width: 1200px"] > div > div[style*="background: white"] {
        padding: 12px !important;
    }
    
    div[style*="max-width: 1200px"] h3 {
        font-size: 16px !important;
    }
    
    /* Form gaps */
    form[style*="gap: 20px"] {
        gap: 16px !important;
    }
    
    /* Table even more compact */
    div[style*="overflow-x: auto"] table {
        min-width: 700px;
    }
    
    div[style*="overflow-x: auto"] th,
    div[style*="overflow-x: auto"] td {
        padding: 8px 6px !important;
        font-size: 12px !important;
    }
    
    div[style*="overflow-x: auto"] .btn {
        padding: 5px 10px !important;
        font-size: 12px !important;
    }
}

/* ===================================
   MANAGER ORDERS PAGE
   =================================== */

@media (max-width: 768px) {
    /* Status modal */
    #statusModal > div {
        width: 95% !important;
        max-width: 95% !important;
        padding: 1.5rem !important;
        margin: 0 10px;
    }
    
    #statusModal h3 {
        font-size: 1.125rem !important;
    }
    
    #statusModal button[type="button"][id^="statusBtn-"] {
        padding: 0.75rem !important;
        flex-direction: column;
        text-align: center !important;
    }
    
    #statusModal button[type="button"][id^="statusBtn-"] > div:first-child {
        width: 32px !important;
        height: 32px !important;
    }
    
    #statusModal div[style*="display: flex; gap: 12px; justify-content: flex-end"] {
        flex-direction: column-reverse !important;
    }
    
    #statusModal div[style*="display: flex; gap: 12px; justify-content: flex-end"] button {
        width: 100%;
    }
    
    /* Filters form */
    .filters-form div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .filters-form div[style*="display: flex; gap: 12px"] {
        flex-direction: column !important;
    }
    
    .filters-form div[style*="display: flex; gap: 12px"] .btn,
    .filters-form div[style*="display: flex; gap: 12px"] a {
        width: 100%;
        justify-content: center;
    }
    
    /* Order cards */
    .orders-list .card > div[style*="background: #f8f9fa"] {
        padding: 16px !important;
    }
    
    .orders-list .card > div[style*="background: #f8f9fa"] > div {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .orders-list .card > div[style*="background: #f8f9fa"] > div > div:first-child {
        width: 100%;
        justify-content: space-between;
    }
    
    .orders-list .card > div[style*="background: #f8f9fa"] > div > div:last-child {
        width: 100%;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    .orders-list .card span[style*="font-size: 18px"] {
        font-size: 16px !important;
    }
    
    .orders-list button[onclick*="openStatusModal"] {
        width: 100%;
        margin-top: 8px;
        justify-content: center;
    }
    
    /* Order details table */
    .orders-list .table-modern {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .orders-list .table-modern table {
        min-width: 600px;
    }
    
    /* Notes section */
    .orders-list div[style*="border-left: 4px solid #5b5fc7"] {
        padding: 12px !important;
    }
    
    /* Pagination */
    .pagination-modern {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .pagination-modern .btn {
        width: 100%;
        justify-content: center;
    }
    
    .pagination-info {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Status modal even smaller */
    #statusModal > div {
        padding: 1rem !important;
    }
    
    #statusModal h3 {
        font-size: 1rem !important;
    }
    
    #statusModal button[type="button"][id^="statusBtn-"] {
        padding: 0.5rem !important;
    }
    
    #statusModal button[type="button"][id^="statusBtn-"] > div:last-child > div:first-child {
        font-size: 14px;
    }
    
    #statusModal button[type="button"][id^="statusBtn-"] > div:last-child > div:last-child {
        font-size: 12px !important;
    }
    
    /* Order cards */
    .orders-list .card > div[style*="background: #f8f9fa"] {
        padding: 12px !important;
    }
    
    .orders-list .card span[style*="font-size: 18px"] {
        font-size: 14px !important;
    }
    
    .orders-list .card > div[style*="background: #f8f9fa"] span[style*="font-size: 14px"] {
        font-size: 12px !important;
    }
    
    /* Table wrapper */
    .orders-list .table-modern table {
        min-width: 500px;
    }
    
    .orders-list .table-modern th,
    .orders-list .table-modern td {
        padding: 8px 6px !important;
        font-size: 12px !important;
    }
}

/* ===================================
   MANAGER PRODUCTS PAGE
   =================================== */

@media (max-width: 768px) {
    /* Header buttons */
    .page-header-modern > div[style*="display: flex; gap: 12px"] {
        flex-direction: column !important;
        width: 100%;
    }
    
    .page-header-modern > div[style*="display: flex; gap: 12px"] .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Product images smaller on mobile */
    .table-modern img[style*="width: 48px"] {
        width: 40px !important;
        height: 40px !important;
    }
    
    .table-modern div[style*="width: 48px; height: 48px"] {
        width: 40px !important;
        height: 40px !important;
    }
    
    /* Table action buttons stack */
    .table-modern .action-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }
    
    .table-modern .action-buttons .btn,
    .table-modern .action-buttons form {
        width: 100%;
    }
    
    .table-modern .action-buttons button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Even smaller product images */
    .table-modern img[style*="width: 48px"] {
        width: 36px !important;
        height: 36px !important;
    }
    
    .table-modern div[style*="width: 48px; height: 48px"] {
        width: 36px !important;
        height: 36px !important;
    }
    
    /* Smaller badges */
    .table-modern .badge {
        font-size: 10px !important;
        padding: 3px 8px !important;
    }
    
    /* Compact action buttons */
    .table-modern .action-buttons .btn {
        font-size: 11px !important;
        padding: 6px 10px !important;
    }
}

/* ===================================
   MANAGER PRODUCTS CREATE PAGE
   =================================== */

.image-upload-area {
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #f9fafb;
}

.image-upload-area:hover {
    border-color: #5b5fc7;
    background: #f5f5ff;
}

.image-upload-area.has-image {
    border-style: solid;
    border-color: #5b5fc7;
    background: #fff;
}

.image-upload-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-upload-icon i {
    font-size: 24px;
    color: #5b5fc7;
}

.image-preview {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    margin-top: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.variations-container {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.variation-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.variation-row input {
    flex: 1;
}

.btn-remove-variation {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-remove-variation:hover {
    background: #fecaca;
    border-color: #f87171;
}

.btn-add-variation {
    background: #fff;
    color: #5b5fc7;
    border: 2px dashed #d1d5db;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-add-variation:hover {
    background: #f5f5ff;
    border-color: #5b5fc7;
}

.variations-empty {
    text-align: center;
    padding: 24px;
    color: #9ca3af;
}

.variations-empty i {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.variations-empty p {
    margin: 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    /* Image upload area */
    .image-upload-area {
        padding: 24px 16px !important;
    }
    
    .image-upload-icon {
        width: 48px !important;
        height: 48px !important;
    }
    
    .image-upload-icon i {
        font-size: 20px !important;
    }
    
    .image-upload-area p {
        font-size: 14px !important;
    }
    
    .image-preview {
        max-width: 150px !important;
        max-height: 150px !important;
    }
    
    /* Variation rows - stack inputs */
    .variation-row {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 10px !important;
    }
    
    .variation-row input {
        width: 100%;
    }
    
    .variation-row input[style*="max-width"] {
        max-width: none !important;
    }
    
    .btn-remove-variation {
        align-self: flex-end;
        width: 100%;
        justify-content: center;
        height: 32px;
    }
    
    /* Variations container */
    .variations-container {
        padding: 16px !important;
    }
    
    /* Info rows */
    .info-row {
        padding: 12px 0 !important;
    }
    
    .info-row span {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    /* More compact image upload */
    .image-upload-area {
        padding: 20px 12px !important;
    }
    
    .image-upload-icon {
        width: 40px !important;
        height: 40px !important;
    }
    
    .image-upload-icon i {
        font-size: 18px !important;
    }
    
    .image-upload-area p {
        font-size: 13px !important;
    }
    
    .image-upload-area small {
        font-size: 11px !important;
    }
    
    /* Smaller variations */
    .variation-row {
        padding: 8px !important;
    }
    
    .variations-container {
        padding: 12px !important;
    }
    
    .btn-add-variation {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    
    /* Info rows more compact */
    .info-row {
        padding: 10px 0 !important;
    }
    
    .info-row span {
        font-size: 12px !important;
    }
}

/* ===================================
   PROFILE PAGE
   =================================== */

@media (max-width: 768px) {
    /* Two-column grid becomes single column */
    .page-container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Card headers */
    .card > div[style*="background: #f8f9fa"] {
        padding: 16px !important;
    }
    
    .card > div[style*="background: #f8f9fa"] h2 {
        font-size: 16px !important;
    }
    
    /* Card body */
    .card > div[style*="padding: 24px"] {
        padding: 16px !important;
    }
}

@media (max-width: 480px) {
    /* Even tighter spacing */
    .card > div[style*="background: #f8f9fa"] {
        padding: 12px !important;
    }
    
    .card > div[style*="background: #f8f9fa"] h2 {
        font-size: 15px !important;
    }
    
    .card > div[style*="padding: 24px"] {
        padding: 12px !important;
    }
}

