/* Hosting Panel Styles */

/* Enhanced Add Site Button Styling */
.btn-success[data-bs-toggle="modal"] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 2px solid #10b981;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-success[data-bs-toggle="modal"]:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: #059669;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
}

.btn-success[data-bs-toggle="modal"]:active {
    transform: translateY(0);
}

/* Enhanced Modal Styling */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

/* Modal Layering - Ensure delete confirmation appears above site lookup modal */
#deleteSiteConfirmModal {
    z-index: 1060 !important;
}

.modal-header {
    border-bottom: 2px solid #f1f5f9;
    border-radius: 15px 15px 0 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.modal-footer {
    border-top: 2px solid #f1f5f9;
    border-radius: 0 0 15px 15px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.25rem;
}

/* URL Input Group Styling */
.input-group .form-select {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 500;
    color: #374151;
    flex: 0 0 auto;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23374151' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    cursor: pointer;
    padding-right: 2.5rem;
}

.input-group .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .form-select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2310b981' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
}

.input-group .form-select:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e5e7eb 100%);
    border-color: #9ca3af;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23374151' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.input-group .form-control:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

/* Enhanced Modal Button Styling */
.modal-footer .btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    border: 1px solid #6b7280;
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.2);
    transition: all 0.3s ease;
}

.modal-footer .btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    border-color: #4b5563;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(107, 114, 128, 0.3);
}

/* Ensure Tailwind doesn't override Bootstrap's important components */
.btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning,
.btn-info, .btn-light, .btn-dark, .btn-outline-primary, .btn-outline-secondary,
.btn-outline-success, .btn-outline-danger, .btn-outline-warning,
.btn-outline-info, .btn-outline-light, .btn-outline-dark {
    /* Preserve Bootstrap button appearances */
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: inherit;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Main layout - Enhanced with Visual Depth */
body {
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, rgba(132, 250, 176, 0.4) 0%, rgba(143, 211, 244, 0.4) 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.hosting-container {
    max-width: 1400px;
    width: 100%;
    padding: 1rem;
    background: transparent;
    min-height: 100vh;
    margin: 0 auto;
}

/* Enhanced Header Section */
.header-section {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 20px 40px rgba(31, 38, 135, 0.15),
        0 8px 16px rgba(31, 38, 135, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.8),
        inset 0 -2px 0 rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.header-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(45deg) translateX(-100%); }
    50% { transform: rotate(45deg) translateX(100%); }
}

/* Enhanced Panel Cards */
.panel-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 20px;
    margin-bottom: 1rem;
    padding: 1.5rem;
    box-shadow: 
        0 20px 40px rgba(31, 38, 135, 0.12),
        0 8px 16px rgba(31, 38, 135, 0.08),
        inset 0 2px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.panel-card:hover {
    /* Remove lift animation - keep panels static */
}

.panel-card.compact {
    padding: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Enhanced Form Controls */
.compact-form .form-control {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 2px solid rgba(209, 250, 229, 0.8);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 250, 251, 0.8) 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.05),
        0 2px 4px rgba(0, 0, 0, 0.05);
}

.compact-form .form-control::placeholder {
    font-size: 0.8rem;
    color: rgba(107, 114, 128, 0.7);
}

.compact-form .form-control:focus {
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: 
        0 0 0 4px rgba(16, 185, 129, 0.15),
        inset 0 2px 4px rgba(0, 0, 0, 0.05),
        0 4px 12px rgba(16, 185, 129, 0.2);
    background: linear-gradient(145deg, #ffffff 0%, rgba(240, 253, 244, 0.8) 100%);
}

/* Make custom name field wider to fit full placeholder */
.compact-form .col-md-4 .form-control {
    min-width: 140px;
}

.compact-form .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

/* Enhanced Monitor Cards */
.monitor-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
  padding: 1rem;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.monitor-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  background-color: #f0fdf4; /* Subtle green highlight on hover */
}

.monitor-card-header,
.monitor-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.monitor-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  overflow-wrap: break-word;
  margin: 0;
  flex-grow: 1;
  min-width: 0;
}

.monitor-status {
  flex-shrink: 0;
}

.uptime-stats {
  display: flex;
  gap: 1.5rem;
  flex-grow: 1;
}

.monitor-click-hint {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background-color: rgba(45, 212, 191, 0.2);
  color: #0d9488;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.monitor-card:hover .monitor-click-hint {
    background-color: #0d9488;
    color: #fff;
}

.monitor-card .monitor-info {
  flex-grow: 1;
  min-width: 0;
}

.monitor-card .monitor-info h5 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  overflow-wrap: break-word;
  color: #333;
  margin-bottom: 0.5rem;
}

.monitor-card .monitor-actions {
  flex-shrink: 0;
}

.uptime-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.uptime-item, .response-time, .last-down-stat {
  text-align: left;
}

/* Enhanced Status Badges */
.monitor-status {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.status-up {
    background: linear-gradient(135deg, rgba(209, 250, 229, 0.8) 0%, rgba(167, 243, 208, 0.6) 100%);
    color: #047857;
    border: 1px solid rgba(167, 243, 208, 0.8);
    text-shadow: 0 1px 2px rgba(4, 120, 87, 0.2);
}

.status-down {
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.8) 0%, rgba(252, 165, 165, 0.6) 100%);
    color: #dc2626;
    border: 1px solid rgba(252, 165, 165, 0.8);
    text-shadow: 0 1px 2px rgba(220, 38, 38, 0.2);
}

.status-paused {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.8) 0%, rgba(253, 213, 170, 0.6) 100%);
    color: #d97706;
    border: 1px solid rgba(253, 213, 170, 0.8);
    text-shadow: 0 1px 2px rgba(217, 119, 6, 0.2);
}

.status-unknown {
    background: linear-gradient(135deg, rgba(243, 244, 246, 0.8) 0%, rgba(209, 213, 219, 0.6) 100%);
    color: #6b7280;
    border: 1px solid rgba(209, 213, 219, 0.8);
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 1px solid #d1fae5;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
    background: white;
}

/* Enhanced Buttons */
.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(16, 185, 129, 0.3),
        0 2px 4px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(16, 185, 129, 0.4),
        0 4px 8px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-outline-primary {
    border: 2px solid rgba(16, 185, 129, 0.8);
    color: #10b981;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 253, 244, 0.6) 100%);
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 8px rgba(16, 185, 129, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 
        0 4px 16px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    color: white;
    font-weight: 500;
    border-radius: 8px;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Toast Notifications - Fixed Position */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 99999;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 6px;
    margin-bottom: 0.4rem;
    padding: 0.6rem 0.8rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border: none;
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 220px;
    max-width: 280px;
    position: relative;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-danger {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.toast-danger .toast-icon {
    color: #ef4444;
}

.toast-danger .toast-message {
    color: #b91c1c;
}

.toast-success {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

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

.toast-success .toast-message {
    color: #047857;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

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

.toast-warning .toast-message {
    color: #d97706;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.toast-icon {
    font-size: 0.9rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.toast-message {
    flex: 1;
    font-weight: 500;
    font-size: 0.8rem;
    line-height: 1.25;
}

.toast-close {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: #374151;
}

/* Legacy alert styles (kept for compatibility) */
.alert {
    border-radius: 10px;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border: none;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
    border-left: 4px solid #dc2626;
    font-weight: 500;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-success {
    background: rgba(34, 197, 94, 0.9);
    color: white;
    border-left: 4px solid #16a34a;
    font-weight: 500;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.loading {
    text-align: center;
    padding: 2rem;
}

.monitor-actions {
    position: absolute;
    bottom: 14px;
    right: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 80px;
}

.monitor-card .monitor-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  flex-shrink: 0;
  margin-left: 1rem;
}

.monitor-card .monitor-click-hint {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background-color: rgba(45, 212, 191, 0.2);
  color: #0d9488;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.monitor-card:hover .monitor-click-hint {
  background-color: #0d9488;
  color: #fff;
}

.monitor-card .monitor-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.monitor-info h5 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.monitor-info p {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.uptime-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 500;
}

.uptime-stats .uptime-item,
.uptime-stats .response-time {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.uptime-stats .uptime-value,
.uptime-stats .response-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #10b981;
    line-height: 1;
}

.uptime-stats .uptime-label,
.uptime-stats .response-label {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 6px;
}

/* Enhanced Modal Styles - Ultra Compact and Visually Rich */
.modal-dialog.modal-sm {
    max-width: 380px;
    margin: 0.2rem auto;
}

.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 60%, #667eea 100%);
    border-bottom: none;
    padding: 0.4rem 0.75rem;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    pointer-events: none;
}

.modal-header .modal-title {
    font-size: 1rem; /* Slightly smaller font */
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.modal-header .modal-title .monitor-status {
    flex-shrink: 0; /* Don't shrink the status badge */
    white-space: nowrap;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 0.5rem !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

.modal-footer {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 0 0 20px 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.modal-footer-left,
.modal-footer-center,
.modal-footer-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.modal-footer-left {
    /* Actions on the left with spacing */
    gap: 0.5rem;
}

.modal-footer-center {
    /* Primary actions in the center */
    flex: 1;
    justify-content: center;
}

.modal-footer-right {
    /* Secondary actions on the right */
}

/* Enhanced button styles */
.modal-footer .btn {
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.2s ease-in-out;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-width: 70px;
    position: relative;
    overflow: hidden;
}

/* Delete button - Destructive (Red) */
.modal-footer .btn-danger {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    border: 1px solid #b91c1c;
    color: white;
    box-shadow: 0 2px 4px rgba(185, 28, 28, 0.2);
}

.modal-footer .btn-danger:hover {
    background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
    border-color: #991b1b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(185, 28, 28, 0.3);
}

/* Pause button - Warning/Yellow */
.modal-footer .btn-warning {
    background: linear-gradient(135deg, #ffa754 0%, #ff9500 100%);
    border: 1px solid #ffa754;
    color: white;
    box-shadow: 0 2px 4px rgba(255, 167, 84, 0.2);
}

.modal-footer .btn-warning:hover {
    background: linear-gradient(135deg, #ff9500 0%, #e6850e 100%);
    border-color: #ff9500;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 167, 84, 0.3);
}

/* Resume button - Success/Green */
.modal-footer .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid #10b981;
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.modal-footer .btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* Close button - Secondary/Neutral */
.modal-close-btn {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    border: 1px solid #6b7280;
    color: white;
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.15);
}

.modal-close-btn:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    border-color: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(107, 114, 128, 0.25);
    color: white;
}

/* Button focus states */
.modal-footer .btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Loading state for buttons */
.modal-footer .btn:disabled {
    opacity: 0.7;
    transform: none;
    cursor: not-allowed;
}

/* Icon spacing if we add icons later */
.modal-footer .btn i {
    margin-right: 0.375rem;
}

/* Response Time Chart Section */
.response-time-section {
    margin-bottom: 1.5rem;
}

.response-time-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.response-time-chart-container {
    height: 230px;
    padding: 1rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.response-time-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.modal-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.8) 50%, transparent 100%);
}

/* Ultra Compact Button Styles */
.btn-xs {
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-xs:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Ultra Compact Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.stat-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    padding: 0.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    border-radius: 12px 12px 0 0;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.stat-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 30%, #e2e8f0 100%);
}

.stat-card:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.stat-value {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.1rem;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.55rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card.uptime .stat-value {
    color: #059669;
    text-shadow: 0 1px 3px rgba(5, 150, 105, 0.3);
}

.stat-card.uptime::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 50%, #047857 100%);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.stat-card.uptime-24h .stat-value {
    color: #0d9488;
    text-shadow: 0 1px 3px rgba(13, 148, 136, 0.3);
}

.stat-card.uptime-24h::before {
    background: linear-gradient(90deg, #14b8a6 0%, #0d9488 50%, #0f766e 100%);
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.3);
}

/* Ultra Compact Monitor Info Section */
.monitor-info-section {
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 0.6rem;
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.monitor-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
}

.monitor-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.3rem 0.2rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, #ffffff 0%, #e2e8f0 100%);
}

.info-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.55rem;
    margin-bottom: 0.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #374151;
    font-size: 0.7rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Ultra Compact Log Section */
.logs-section {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    overflow: hidden;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.logs-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #374151;
    margin: 0;
    padding: 0.3rem 0.5rem;
    background: linear-gradient(135deg, #f9fafb 0%, #e2e8f0 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logs-table .logs-header {
    display: grid;
    grid-template-columns: 45px 70px 1fr 50px;
    gap: 0.3rem;
    background: linear-gradient(135deg, #f9fafb 0%, #e2e8f0 100%);
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    font-weight: 700;
    font-size: 0.55rem;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logs-body {
    max-height: 150px; /* Reduced from 200px to make modal more compact */
    overflow-y: auto;
    display: block;
}

.log-row {
    display: grid;
    grid-template-columns: 45px 70px 1fr 50px;
    gap: 0.3rem;
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    align-items: center;
    font-size: 0.6rem;
    transition: all 0.2s ease;
}

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

.log-row:hover {
    background: linear-gradient(135deg, #f9fafb 0%, #f1f5f9 100%);
    transform: translateX(2px);
}

.log-col-time {
    color: #6b7280;
    font-size: 0.55rem;
    font-weight: 500;
}

.log-col-reason {
    color: #374151;
    font-weight: 600;
    font-size: 0.6rem;
}

.log-col-duration {
    color: #6b7280;
    text-align: right;
    font-size: 0.55rem;
    font-weight: 600;
}

.log-status-badge {
    display: inline-block;
    padding: 0.1rem 0.3rem;
    border-radius: 6px;
    font-size: 0.5rem;
    font-weight: 700;
    text-align: center;
    min-width: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.log-status-badge.up {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.15) 100%);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.4);
    text-shadow: 0 1px 2px rgba(5, 150, 105, 0.2);
}

.log-status-badge.down {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.15) 100%);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.4);
    text-shadow: 0 1px 2px rgba(220, 38, 38, 0.2);
}

/* Logs disclaimer styling */
.logs-section .text-muted.small {
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .hosting-container {
        max-width: 100%;
        padding: 0.5rem;
        margin: 0 auto;
    }
    
    .panel-card {
        margin-bottom: 0.5rem;
        padding: 1rem;
    }
    
    .monitor-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding-right: 0;
    }
    
    .monitor-actions {
        position: static;
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .monitor-info-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .logs-table .logs-header,
    .log-row {
        grid-template-columns: 45px 75px 1fr 55px;
        gap: 0.4rem;
        padding: 0.4rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .modal-dialog {
        max-width: 95% !important;
        margin: 0.25rem auto;
    }
    
    .modal-body {
        padding: 0.75rem !important;
    }
    
    .modal-header {
        padding: 0.5rem 0.75rem;
    }
    
    .modal-footer {
        padding: 0.5rem 0.75rem;
    }
    
    .stat-card {
        padding: 0.5rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
    
    .info-item {
        padding: 0.4rem 0.2rem;
    }
    
    .info-value {
        font-size: 0.75rem;
    }
    
    .info-label {
        font-size: 0.6rem;
    }
    
    .logs-title {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }
    
    .logs-header {
        font-size: 0.6rem;
        padding: 0.4rem 0.5rem;
    }
    
    .log-status-badge {
        font-size: 0.55rem;
        padding: 0.1rem 0.3rem;
        min-width: 25px;
    }
}

/* Debug styles */
.debug-info {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    max-width: 400px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 9999;
}

.debug-info pre {
    font-size: 0.75rem;
    white-space: pre-wrap;
    margin: 0;
}

.debug-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #10b981;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    z-index: 10000;
}

.no-results-message {
    color: #6b7280;
    font-weight: 500;
    background: rgba(107, 114, 128, 0.1);
    border: 1px solid rgba(107, 114, 128, 0.2);
    border-radius: 8px;
    padding: 1rem;
}

#search-results {
    margin-top: 1rem;
} 

/* Redesigned Modal Styles - Scaled Down & Less Flat */
.modal-dialog {
    max-width: 500px; /* Set default modal size to be more compact */
    max-height: 85vh; /* Limit modal height to 85% of viewport height */
    margin: 1.75rem auto; /* Add more margin top/bottom */
}

.modal-dialog.modal-lg {
    max-width: 650px; /* Scaled down from 800px */
    max-height: 85vh; /* Limit modal height to 85% of viewport height */
    margin: 1.75rem auto; /* Add more margin top/bottom */
}

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-height: 85vh; /* Ensure content doesn't exceed viewport */
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 1.25rem; /* Scaled down */
    flex-shrink: 0; /* Don't shrink header */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header .modal-title {
    font-size: 1rem; /* Compact but readable */
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.modal-header .modal-title .monitor-status {
    flex-shrink: 0; /* Don't shrink the status badge */
    white-space: nowrap;
    font-size: 0.85rem; /* Slightly smaller status */
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.25rem !important; /* Scaled down */
    background: #f8f9fa;
    overflow-y: auto; /* Make body scrollable if needed */
    flex: 1; /* Take remaining space */
}

.modal-footer {
    background: #ffffff;
    border-top: 1px solid #e9ecef;
    padding: 0.75rem 1.25rem; /* Scaled down */
    flex-shrink: 0; /* Don't shrink footer */
}

/* Primary Stat Cards (Top Two) - Scaled Down */
.stats-primary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem; /* Scaled down */
    margin-bottom: 1.25rem; /* Scaled down */
}

.stat-card-large {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1rem; /* Scaled down */
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-card-large .value {
    font-size: 1.75rem; /* Scaled down */
    font-weight: 700;
    color: #00796b;
    line-height: 1.2;
}

.stat-card-large .label {
    font-size: 0.75rem; /* Scaled down */
    color: #6c757d;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- REDESIGNED Secondary Info Section --- */
.info-secondary {
    background: transparent; /* Remove container background */
    border: none;
    box-shadow: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem; /* Gap between the new cards */
    margin-bottom: 1.25rem; /* Scaled down */
}

.info-item {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border-right: none; /* Remove old separator */
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.info-item .label {
    font-size: 0.75rem; /* Scaled down */
    color: #6c757d;
    margin-bottom: 0.35rem;
}

.info-item .value {
    font-size: 1.35rem; /* Scaled down */
    font-weight: 600;
    color: #212529;
}
/* --- END OF REDESIGN --- */


/* Logs Section - Scaled Down */
.logs-section {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.logs-section .logs-title {
    font-size: 1rem; /* Scaled down */
    font-weight: 600;
    padding: 0.75rem 1.25rem; /* Scaled down */
    margin: 0;
    border-bottom: 1px solid #e9ecef;
}

.logs-table th, .logs-table td {
    padding: 0.6rem 1.25rem; /* Scaled down */
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.logs-table th {
    font-size: 0.75rem; /* Scaled down */
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
}

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

.logs-body {
    max-height: 200px; /* Scaled down */
    overflow-y: auto;
    display: block;
}

.logs-body table {
    width: 100%;
}

.log-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem; /* Scaled down */
    font-weight: 600;
    text-transform: uppercase;
}

.log-status-badge.up {
    background-color: #d1fae5;
    color: #047857;
}

.log-status-badge.down {
    background-color: #fee2e2;
    color: #b91c1c;
}

@media (max-width: 768px) {
    .stats-primary, .info-secondary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-item {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .info-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
} 

/* Compact Stats Layout */
.stats-compact {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stats-left, .stats-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item-compact {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.stat-item-compact:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 0.25rem;
}

.stat-sublabel {
    font-size: 0.7rem;
    color: #9ca3af;
    font-style: italic;
}

/* Mobile responsive for compact layout */
@media (max-width: 768px) {
    .stats-compact {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-left, .stats-right {
        gap: 0.5rem;
    }
    
    .stat-item-compact {
        padding: 0.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
}

/* Temporary Remove Site Testing Interface */
.panel-card[style*="border: 2px dashed #dc3545"] {
    position: relative;
    overflow: hidden;
}

.panel-card[style*="border: 2px dashed #dc3545"]::before {
    content: "TESTING ONLY";
    position: absolute;
    top: 10px;
    right: -30px;
    background: #dc3545;
    color: white;
    padding: 2px 40px;
    transform: rotate(45deg);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    z-index: 1;
}

.panel-card[style*="border: 2px dashed #dc3545"] .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: 1px solid #dc3545;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.panel-card[style*="border: 2px dashed #dc3545"] .btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
}

/* --- Order Status Cards --- */
#order-status-statistics .row {
    display: flex;
    align-items: stretch;
}

#order-status-statistics .col-3 {
    display: flex;
}

.order-stat-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70px;
    width: 100%;
}

.order-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, #ffffff 0%, #e2e8f0 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

.order-stat-card .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 0.25rem;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(16, 185, 129, 0.2);
}

.order-stat-card .stat-label {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

/* Clickable state for order cards */
.order-stat-card.clickable {
    cursor: pointer;
}

.order-stat-card.clickable:hover .stat-number {
    color: #059669;
}

/* Specific colors for different order types */
.order-stat-card[data-modal="to-onboard"] .stat-number {
    color: #0ea5e9;
}

.order-stat-card[data-modal="to-onboard"]:hover .stat-number {
    color: #0284c7;
}

.order-stat-card[data-modal="cancelled"] .stat-number {
    color: #dc2626;
}

.order-stat-card[data-modal="cancelled"]:hover .stat-number {
    color: #b91c1c;
}

.order-stat-card[data-modal="lapsed"] .stat-number {
    color: #d97706;
}

.order-stat-card[data-modal="lapsed"]:hover .stat-number {
    color: #b45309;
}

/* Order status refresh button */
#order-status-refresh-btn {
    transition: all 0.2s ease;
}

#order-status-refresh-btn:hover:not(:disabled) {
    transform: rotate(180deg);
}

/* MainWP Refresh Button */
#mainwp-refresh-btn {
    transition: all 0.2s ease;
}

#mainwp-refresh-btn:hover:not(:disabled) {
    transform: rotate(180deg);
}

/* Disable rotation for countdown buttons */
#order-status-refresh-btn:disabled,
#mainwp-refresh-btn:disabled {
    transform: none !important;
}

/* Site sync buttons */
.sync-site-btn {
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.sync-site-btn:hover:not(:disabled) {
    color: #0056b3 !important;
    text-decoration: none !important;
}

.sync-site-btn:disabled {
    pointer-events: none;
    cursor: not-allowed;
}

#order-status-refresh-btn.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Acknowledge Button Styling */
.mark-acknowledged-btn {
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mark-acknowledged-btn:hover {
    background-color: #d97706 !important;
    border-color: #b45309 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

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

.mark-acknowledged-btn:disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
}

/* Acknowledged Order Styling */
.order-acknowledged {
    background-color: #fef3c7 !important;
    border-left: 4px solid #f59e0b !important;
}

.order-acknowledged .btn-success {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
}

.wide-tooltip {
    --bs-tooltip-max-width: 450px;
}

.wide-tooltip .tooltip-inner {
    text-align: left;
    width: 420px;
    max-width: 420px;
}

/* Order status modal table actions column */
.table td:last-child {
    min-width: 200px;
    white-space: nowrap;
}

.table .mark-acknowledged-btn,
.table .mark-complete-btn {
    display: inline-block;
}

/* Ensure buttons stay side by side in order modals */
.table tbody td:last-child {
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
}

.table .btn-group-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: center;
}

/* Sortable table headers */
.table-sortable th {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s ease;
}

.table-sortable th:hover {
    background-color: #e9ecef !important;
}

.table-sortable th i {
    margin-left: 0.5rem;
    opacity: 0.5;
    color: #6c757d;
    transition: all 0.2s ease-in-out;
}

.table-sortable th:hover i {
    color: #007bff !important;
}

.table-sortable th.sort-asc i {
    color: #007bff !important;
    opacity: 1;
}

.table-sortable th.sort-desc i {
    color: #007bff !important;
    opacity: 1;
}

.table-sortable th:last-child i {
    display: none;
}

/* Feedback Bubble Styles */
.feedback-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    user-select: none;
}

.feedback-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3, #004494);
}

.feedback-bubble i {
    font-size: 16px;
}

.feedback-text {
    white-space: nowrap;
}

/* Responsive feedback bubble */
@media (max-width: 768px) {
    .feedback-bubble {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .feedback-bubble i {
        font-size: 14px;
    }
}

/* Make the feedback modal more compact */
#feedbackModal .modal-dialog {
    max-width: 500px;
}

#feedbackModal .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#feedbackModal textarea {
    resize: vertical;
    min-height: 100px;
}

/* File upload styling */
#feedbackImage {
    border: 2px dashed #dee2e6;
    transition: border-color 0.3s ease;
}

#feedbackImage:hover {
    border-color: #007bff;
}

#feedbackImage:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}