/* MinRTT Control Panel - Modern Design */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    --dark: #111827;
    --dark-light: #1f2937;
    --dark-lighter: #374151;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --gray-lighter: #d1d5db;
    --gray-lightest: #f3f4f6;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --radius: 0.25rem;
    --radius-lg: 0.375rem;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: var(--dark);
    background: var(--gray-lightest);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    padding: 2rem;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.login-header {
    background: var(--white);
    color: var(--dark);
    padding: 1.5rem 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.login-header p {
    font-size: 0.8125rem;
    color: var(--gray);
}

.login-body {
    padding: 1.5rem;
}

/* Tabs */
.nav-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.25rem;
    list-style: none;
}

.nav-tabs .nav-link {
    padding: 0.625rem 1rem;
    color: var(--gray);
    font-weight: 500;
    font-size: 0.8125rem;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.15s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.nav-tabs .nav-link:hover {
    color: var(--dark);
    background: var(--gray-lightest);
}

.nav-tabs .nav-link.active {
    color: var(--dark);
    border-bottom-color: var(--dark);
}

.tab-content {
    padding-top: 1rem;
}

.tab-pane {
    display: none;
}

.tab-pane.show {
    display: block;
}

/* Forms */
.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--dark);
    font-size: 0.8125rem;
}

.form-control, .form-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    transition: all 0.15s;
    background: var(--white);
    color: var(--dark);
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--dark);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.mb-3 {
    margin-bottom: 0.875rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--dark);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-light);
}

.btn-secondary {
    background: #6b7280;
    color: var(--white);
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-warning {
    background: var(--warning);
    color: var(--white);
}

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

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.w-100 {
    width: 100%;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: var(--gray-lightest);
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: var(--white);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-brand {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    display: block;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 0.75rem;
    margin-bottom: 0.375rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    color: var(--gray);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.15s;
    font-weight: 500;
    font-size: 0.8125rem;
    margin-bottom: 0.125rem;
}

.sidebar-nav .nav-link:hover {
    background: var(--gray-lightest);
    color: var(--dark);
}

.sidebar-nav .nav-link.active {
    background: var(--dark);
    color: var(--white);
}

.sidebar-nav .nav-link svg {
    width: 18px;
    height: 18px;
}

.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    background: var(--gray-lightest);
    border-radius: var(--radius);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    background: var(--dark);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.6875rem;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 240px;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-logout {
    background: transparent;
    color: var(--gray);
    border: 1px solid var(--border);
    padding: 0.4375rem 0.875rem;
    font-size: 0.8125rem;
}

.btn-logout:hover {
    background: var(--gray-lightest);
    color: var(--dark);
    border-color: var(--gray-lighter);
}

.content-area {
    flex: 1;
    padding: 1.5rem;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--border);
}

.card-header {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark);
    background: var(--gray-lightest);
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--gray-lightest);
    color: var(--gray);
}

.stat-icon.primary {
    background: var(--gray-lightest);
    color: var(--dark);
}

.stat-icon.success {
    background: var(--gray-lightest);
    color: var(--dark);
}

.stat-icon.warning {
    background: var(--gray-lightest);
    color: var(--dark);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 0.125rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray);
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
}

.alert-success {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.alert-danger {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.alert-info {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.btn-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0;
}

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

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.6875rem;
    font-weight: 500;
}

.badge.bg-success {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.badge.bg-danger {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.badge.bg-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge.bg-primary {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge.bg-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge.bg-secondary {
    background: var(--gray-lightest);
    color: var(--gray);
    border: 1px solid var(--border);
}

/* Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 0.5rem;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .col-md-6,
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #1f2937;
    margin-right: 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.menu-toggle:hover {
    background-color: #f3f4f6;
}

.menu-toggle svg {
    display: block;
}

/* Sidebar backdrop for mobile */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-backdrop.show {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}

/* Tables */
.table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid var(--border);
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid var(--border);
    font-weight: 600;
    color: var(--dark);
    background-color: var(--gray-lightest);
}

.table tbody + tbody {
    border-top: 2px solid var(--border);
}

.table-sm th,
.table-sm td {
    padding: 0.5rem;
}

.table-borderless th,
.table-borderless td,
.table-borderless thead th,
.table-borderless tbody + tbody {
    border: 0;
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table tfoot {
    font-weight: 600;
}

.table tfoot td {
    border-top: 2px solid var(--border);
}

.text-end,
.table .text-end,
.table th.text-end,
.table td.text-end {
    text-align: right !important;
}

.text-center,
.table .text-center,
.table th.text-center,
.table td.text-center {
    text-align: center !important;
}

.text-start,
.table .text-start,
.table th.text-start,
.table td.text-start {
    text-align: left !important;
}

.text-muted {
    color: var(--gray) !important;
}

.text-success {
    color: #10b981 !important;
}

.text-danger {
    color: #ef4444 !important;
}

.table-active {
    background-color: var(--gray-lightest);
}

/* Utilities */
.d-flex {
    display: flex;
}

.justify-content-end {
    justify-content: flex-end;
}

.gap-2 {
    gap: 0.5rem;
}

.text-muted {
    color: var(--gray);
}

small {
    font-size: 0.75rem;
}

/* ============================================
   DATA TABLES - Consolidated from multiple views
   ============================================ */

/* Unified data table styling */
.data-table,
.invoice-table,
.server-table,
.transaction-table,
.ticket-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead tr,
.invoice-table thead tr,
.server-table thead tr,
.transaction-table thead tr,
.ticket-table thead tr {
    background: var(--gray-lightest);
    border-bottom: 1px solid var(--border);
}

.data-table th,
.invoice-table th,
.server-table th,
.transaction-table th,
.ticket-table th {
    padding: 0.75rem 1.25rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table th.sortable,
.invoice-table th.sortable,
.server-table th.sortable,
.transaction-table th.sortable,
.ticket-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 2rem;
}

.data-table th.sortable:hover,
.invoice-table th.sortable:hover,
.server-table th.sortable:hover,
.transaction-table th.sortable:hover,
.ticket-table th.sortable:hover {
    background: var(--gray-light);
}

.data-table td,
.invoice-table td,
.server-table td,
.transaction-table td,
.ticket-table td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
}

.data-table tbody tr:hover,
.invoice-table tbody tr:hover,
.server-table tbody tr:hover,
.transaction-table tbody tr:hover,
.ticket-table tbody tr:hover {
    background: var(--gray-lightest);
}

.data-table tbody tr:last-child td,
.invoice-table tbody tr:last-child td,
.server-table tbody tr:last-child td,
.transaction-table tbody tr:last-child td,
.ticket-table tbody tr:last-child td {
    border-bottom: none;
}

/* Sort indicators */
.sort-indicator {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
}

.sort-indicator::before {
    content: '⇅';
    font-size: 0.875rem;
}

.data-table th.sort-asc .sort-indicator::before,
.invoice-table th.sort-asc .sort-indicator::before,
.server-table th.sort-asc .sort-indicator::before,
.transaction-table th.sort-asc .sort-indicator::before,
.ticket-table th.sort-asc .sort-indicator::before {
    content: '▲';
    opacity: 1;
}

.data-table th.sort-desc .sort-indicator::before,
.invoice-table th.sort-desc .sort-indicator::before,
.server-table th.sort-desc .sort-indicator::before,
.transaction-table th.sort-desc .sort-indicator::before,
.ticket-table th.sort-desc .sort-indicator::before {
    content: '▼';
    opacity: 1;
}

/* ============================================
   SUMMARY CARDS - For transactions/credits pages
   ============================================ */

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
}

.summary-card-label {
    font-size: 0.875rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.summary-card-value {
    font-size: 1.875rem;
    font-weight: 700;
}

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

/* ============================================
   COLOR UTILITIES - Replace inline styles
   ============================================ */

.text-primary {
    color: #3b82f6 !important;
}

.text-gray {
    color: #6b7280 !important;
}

.text-gray-dark {
    color: #374151 !important;
}

.text-bold,
.font-weight-600 {
    font-weight: 600 !important;
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

/* ============================================
   LAYOUT UTILITIES - Grid patterns
   ============================================ */

.info-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
}

.info-label {
    font-weight: 600;
    color: #6b7280;
}

.info-value {
    color: #374151;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

/* ============================================
   CANCELLATION STYLES
   ============================================ */

/* Service page cancellation section */
.service-cancel-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.service-section-title {
    margin-bottom: 1rem;
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
}

.service-cancel-description {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* Refund available notice (< 72 hours) */
.refund-available-notice {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.refund-notice-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #059669;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.refund-notice-header svg {
    width: 20px;
    height: 20px;
}

.refund-notice-text {
    color: #047857;
    font-size: 0.875rem;
    margin: 0;
}

/* Pending cancellation notice */
.pending-cancellation-notice {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    padding: 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.pending-cancellation-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d97706;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.pending-cancellation-header svg {
    width: 22px;
    height: 22px;
}

.cancellation-details {
    background: #fffbeb;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.cancellation-detail-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.cancellation-detail-row:last-child {
    margin-bottom: 0;
}

.cancellation-detail-row .detail-label {
    font-weight: 600;
    color: #92400e;
}

.cancellation-detail-row .detail-value {
    color: #78350f;
}

.cancellation-detail-row.refund-row {
    padding-top: 0.5rem;
    border-top: 1px solid #fcd34d;
    margin-top: 0.5rem;
}

.cancellation-detail-row.refund-row .detail-value {
    color: #059669;
    font-weight: 600;
}

.pending-cancellation-footer {
    color: #92400e;
    font-size: 0.875rem;
    margin: 0;
    font-style: italic;
}

/* Cancel service page - Service summary */
.cancel-service-summary {
    background: var(--gray-lightest);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.cancel-summary-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.cancel-summary-row:last-child {
    margin-bottom: 0;
}

.cancel-summary-label {
    font-weight: 600;
    color: var(--gray);
}

/* Refund eligible badge */
.refund-eligible-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Section title */
.cancel-section-title {
    margin-bottom: 1rem;
    margin-top: 0;
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
}

/* Cancellation option cards */
.cancel-option {
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.cancel-option:hover {
    border-color: var(--primary);
    background: var(--gray-lightest);
}

.cancel-option.selected {
    border-color: var(--primary);
    background: #eff6ff;
}

.cancel-option input[type="radio"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.cancel-option-content {
    flex: 1;
}

.cancel-option-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.cancel-option-title .badge {
    margin-left: 0.5rem;
    font-size: 0.75rem;
}

.cancel-option-description {
    color: var(--gray);
    font-size: 0.875rem;
}

.cancel-option-description p {
    margin: 0.25rem 0;
}

/* Eco-friendly badge */
.eco-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Eco info box */
.eco-info-box {
    background: #ecfdf5;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #a7f3d0;
    font-size: 0.8125rem;
    color: #047857;
    margin-top: 0.75rem;
}

/* Reason section */
.cancel-reason-section {
    margin-top: 2rem;
}

.cancel-reason-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.required-asterisk {
    color: var(--danger);
}

.cancel-reason-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-lighter);
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 100px;
}

.cancel-reason-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Confirmation box */
.cancel-confirmation-box {
    margin-top: 2rem;
    padding: 1rem;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 0.375rem;
}

.cancel-confirmation-label {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    cursor: pointer;
    margin: 0;
}

.cancel-confirmation-label input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.cancel-confirmation-label span {
    font-size: 0.875rem;
    color: #92400e;
}

/* Button group */
.cancel-button-group {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.cancel-submit-btn,
.cancel-keep-btn {
    flex: 1;
}

.cancel-keep-btn {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cancel-summary-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .cancel-option {
        padding: 1rem;
    }

    .cancel-button-group {
        flex-direction: column;
    }

    .cancel-submit-btn,
    .cancel-keep-btn {
        width: 100%;
    }

    .cancellation-detail-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .cancellation-detail-row .detail-label {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
}

/* ============================================
   SPACING UTILITIES
   ============================================ */

.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }

.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.5rem !important; }
.p-2 { padding: 1rem !important; }
.p-3 { padding: 1.5rem !important; }
.p-4 { padding: 2rem !important; }

.gap-sm { gap: 0.75rem !important; }
.gap-md { gap: 1rem !important; }
.gap-lg { gap: 1.5rem !important; }

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

.empty-state {
    padding: 3rem;
    text-align: center;
    color: var(--gray);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    opacity: 0.5;
}

.empty-state p {
    margin-bottom: 0;
}

.empty-state p:last-child {
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

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

/* Color utilities */
.text-success { color: #10b981 !important; }
.text-danger { color: #ef4444 !important; }
.text-warning { color: #f59e0b !important; }
.text-info { color: #3b82f6 !important; }

/* Font weight utilities */
.font-weight-500 { font-weight: 500 !important; }
.font-weight-700 { font-weight: 700 !important; }

/* Font size utilities */
.text-xs { font-size: 0.75rem !important; }
.text-sm { font-size: 0.8125rem !important; }
.text-base { font-size: 1rem !important; }
.text-lg { font-size: 1.125rem !important; }

/* Button size utilities */
.btn-xs {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.75rem !important;
}

/* Icon utilities */
.icon-empty-state {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    opacity: 0.5;
}

.icon-circle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

.icon-circle-success {
    background: #10b981;
}

.icon-circle-danger {
    background: #ef4444;
}

.icon-circle-primary {
    background: #3b82f6;
}

/* Grid utilities */
.grid-info-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
}

.grid-info-row-sm {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.grid-auto-gap {
    display: grid;
    gap: 0.75rem;
}

.grid-auto-columns {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Margin utilities (additional) */
.mb-quarter { margin-bottom: 0.25rem !important; }
.mb-half { margin-bottom: 0.5rem !important; }

/* Padding utilities (additional) */
.p-card { padding: 1.5rem !important; }

/* Section title */
.section-title {
    margin-bottom: 1rem;
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
}

/* Label styles */
.label-success {
    font-weight: 600;
    color: #065f46;
    margin-bottom: 0.25rem;
}

.label-gray-dark {
    font-weight: 600;
    color: #374151;
}

.label-gray {
    font-weight: 600;
    color: #6b7280;
}

/* Text utility for muted/gray text */
.text-muted-sm {
    font-size: 0.75rem;
    color: var(--gray);
}
