/**
 * Polished Theme CSS - CustomerPortal
 * Modern, professional styling for enhanced user experience
 * Adapted from TenantPortal.Web for Bootstrap 5.3.2
 * Version: 1.0.0
 */

/* ===============================================
   THEME CUSTOMIZATION VARIABLES
   =============================================== */

:root {
    --polished-primary: #007bff;
    --polished-secondary: #6c757d;
    --polished-success: #28a745;
    --polished-info: #17a2b8;
    --polished-warning: #ffc107;
    --polished-danger: #dc3545;
    --polished-light: #f8f9fa;
    --polished-dark: #343a40;

    --polished-border-color: #e9ecef;
    --polished-border-radius: 8px;
    --polished-border-radius-lg: 12px;
    --polished-border-radius-sm: 6px;

    --polished-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    --polished-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.08);

    --polished-transition: all 0.3s ease;
    --polished-transition-fast: all 0.2s ease;

    /* Accent colors */
    --accent-teal: hsl(180, 65%, 45%);
    --accent-indigo: hsl(260, 89%, 51%);
    --accent-rose: hsl(330, 80%, 60%);
    --accent-emerald: hsl(145, 63%, 58%);
    --accent-sapphire: hsl(216, 98%, 52%);
    --accent-amber: hsl(42, 100%, 60%);
}

/* ===============================================
   TURKISH LOCALE FIXES
   Disable text-transform: uppercase for Turkish compatibility (i -> İ issue)
   =============================================== */

.page-title-box h4 {
    text-transform: none !important;
}

/* ===============================================
   STATUS BADGE SYSTEM
   =============================================== */

.status-badge-container {
    display: flex;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    /* text-transform: uppercase; - Disabled for Turkish locale compatibility (i -> İ) */
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.status-badge-draft {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

.status-badge-pending {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: #212529;
}

.status-badge-approved {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.status-badge-rejected {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.status-badge-revision {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.status-badge-default {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    color: #495057;
}

/* ===============================================
   ENHANCED CARDS
   =============================================== */

.enhanced-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.enhanced-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.enhanced-table-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
}

.enhanced-form-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

/* Base card styling */
.card {
    border-radius: 12px !important;
    overflow: hidden;
    border: 1px solid #e3e6f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.card-header {
    background: linear-gradient(135deg, #ffffff, #f8f9fa) !important;
    border-bottom: 2px solid #e9ecef !important;
    padding: 0.75rem 1rem !important;
    border-radius: 12px 12px 0 0 !important;
}

.card-header span {
    font-weight: 600;
    color: #495057;
    letter-spacing: 0.5px;
}

.card-header-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-footer {
    border-radius: 0 0 12px 12px !important;
}

.card-body {
    padding: 1.25rem;
}

/* ===============================================
   HEADER BADGES
   =============================================== */

.item-count-badge {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white !important;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    /* text-transform: uppercase; - Disabled for Turkish locale compatibility (i -> İ) */
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.form-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white !important;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    /* text-transform: uppercase; - Disabled for Turkish locale compatibility (i -> İ) */
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.info-badge {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white !important;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    /* text-transform: uppercase; - Disabled for Turkish locale compatibility (i -> İ) */
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
}

.warning-badge {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: #212529;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    /* text-transform: uppercase; - Disabled for Turkish locale compatibility (i -> İ) */
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

/* ===============================================
   MODERN TABLES
   =============================================== */

.modern-table {
    font-size: 0.9rem;
}

.table {
    font-size: 0.9375rem;
    color: #495057;
    margin-bottom: 0;
}

.table-bordered {
    border: 1px solid #e3e6f0;
    border-radius: 8px;
    overflow: hidden;
}

.table-bordered thead th,
.table-bordered thead td {
    border-bottom-width: 2px;
}

.table-bordered th,
.table-bordered td {
    border-color: #e3e6f0;
    padding: 0.875rem 1rem;
    vertical-align: middle;
}

.table-header-gradient {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 2px solid #dee2e6;
}

.table thead th {
    font-weight: 600;
    /* text-transform: uppercase; - Disabled for Turkish locale compatibility (i -> İ) */
    font-size: 0.8125rem;
    letter-spacing: 0.5px;
    color: #5a5c69;
    border-bottom: 2px solid #e3e6f0;
    background: linear-gradient(135deg, #f8f9fc 0%, #f5f7fa 100%);
    padding: 1rem;
    white-space: nowrap;
}

.th-content {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #495057;
    /* text-transform: uppercase; - Disabled for Turkish locale compatibility (i -> İ) */
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.table tbody td {
    color: #5a5c69;
    font-size: 0.9rem;
    border-color: #e3e6f0;
}

.table-row-hover:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%) !important;
    transition: all 0.3s ease;
    transform: scale(1.001);
}

.modern-table tbody td {
    vertical-align: middle;
    padding: 0.75rem;
    border-color: #e9ecef;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #ffffff;
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: #fafbfc;
}

.table-striped tbody tr:hover {
    background-color: #f1f3f8 !important;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.table-sm th,
.table-sm td {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
}

/* ===============================================
   TABLE CONTENT ELEMENTS
   =============================================== */

.service-name {
    font-weight: 500;
    color: #495057;
    padding: 0.5rem 0;
}

.measurement-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0;
}

.measurement-amount {
    font-weight: 600;
    color: #007bff;
    font-size: 1.1em;
}

.measurement-unit {
    font-size: 0.8em;
    color: #6c757d;
    /* text-transform: uppercase; - Disabled for Turkish locale compatibility (i -> İ) */
    letter-spacing: 0.5px;
}

.quantity-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    min-width: 60px;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
}

.price-info {
    font-weight: 600;
    color: #28a745;
    font-size: 0.875rem;
}

.total-amount {
    font-weight: 700;
    color: #28a745;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 4px;
}

.table-footer-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.table-footer-gradient td {
    border-top: 2px solid #007bff;
    padding: 0.75rem;
    font-weight: 600;
}

/* ===============================================
   INFORMATION SECTIONS
   =============================================== */

.info-section {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    margin: 0.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.customer-info-section {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    margin: 0.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.section-title {
    color: #495057;
    font-weight: 600;
    /* text-transform: uppercase; - Disabled for Turkish locale compatibility (i -> İ) */
    letter-spacing: 0.5px;
}

/* ===============================================
   DETAIL GRIDS
   =============================================== */

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.customer-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.detail-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.detail-label {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #6c757d;
    /* text-transform: uppercase; - Disabled for Turkish locale compatibility (i -> İ) */
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 0.95rem;
    color: #495057;
    font-weight: 500;
    word-break: break-word;
}

/* ===============================================
   STATUS DETAILS & TIMELINE
   =============================================== */

.status-details-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.status-details-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.status-timeline {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 200px;
}

.timeline-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8);
}

.timeline-marker.created {
    background: #6c757d;
}

.timeline-marker.pending {
    background: #ffc107;
}

.timeline-marker.approved {
    background: #28a745;
}

.timeline-marker.rejected {
    background: #dc3545;
}

.timeline-marker.revision {
    background: #17a2b8;
}

.timeline-marker.draft {
    background: #6c757d;
}

.timeline-content {
    display: flex;
    flex-direction: column;
}

.timeline-content .text-muted {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.timeline-content .fw-medium {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
}

/* ===============================================
   REVISION MESSAGES
   =============================================== */

.revision-message {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.revision-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #856404;
}

.revision-content {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #856404;
}

/* ===============================================
   FORM ENHANCEMENTS
   =============================================== */

.form-content {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 0 0 12px 12px;
}

.enhanced-form {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.validation-message {
    color: #e74c3c;
    font-size: 0.750rem;
    font-style: italic;
    margin-top: 0.25rem;
    display: block;
    border-left: 4px solid #e74c3c;
    padding-left: 0.5rem;
}

/* ===============================================
   SPACING & LAYOUT
   =============================================== */

.compact-row {
    margin-bottom: 1rem;
}

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

.compact-section {
    margin-bottom: 0.75rem;
}

.compact-card {
    margin-bottom: 1rem;
}

/* ===============================================
   ENHANCED BOOTSTRAP BUTTON OVERRIDES
   =============================================== */

/* Base button styling - applies to all Bootstrap buttons */
.btn {
    border-radius: 8px !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    /* text-transform: uppercase !important; - Disabled for Turkish locale compatibility (i -> İ) */
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15) !important;
}

.btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25) !important;
}

.btn:active {
    transform: translateY(-1px) !important;
    transition: all 0.1s ease !important;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Primary Button - Blue gradient */
.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    color: white !important;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4) !important;
}

.btn-primary:focus,
.btn-primary.focus {
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5) !important;
}

.btn-primary:active,
.btn-primary.active {
    background: linear-gradient(135deg, #004085, #002752) !important;
    color: white !important;
}

/* Secondary Button - Gray gradient */
.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
    color: white !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #495057) !important;
    color: white !important;
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4) !important;
}

.btn-secondary:focus,
.btn-secondary.focus {
    background: linear-gradient(135deg, #5a6268, #495057) !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5) !important;
}

.btn-secondary:active,
.btn-secondary.active {
    background: linear-gradient(135deg, #495057, #343a40) !important;
    color: white !important;
}

/* Success Button - Green gradient */
.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8) !important;
    color: white !important;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4) !important;
}

.btn-success:focus,
.btn-success.focus {
    background: linear-gradient(135deg, #20c997, #17a2b8) !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5) !important;
}

.btn-success:active,
.btn-success.active {
    background: linear-gradient(135deg, #1e7e34, #155724) !important;
    color: white !important;
}

/* Danger Button - Red gradient */
.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130) !important;
    color: white !important;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4) !important;
}

.btn-danger:focus,
.btn-danger.focus {
    background: linear-gradient(135deg, #c82333, #bd2130) !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5) !important;
}

.btn-danger:active,
.btn-danger.active {
    background: linear-gradient(135deg, #bd2130, #a71e2a) !important;
    color: white !important;
}

/* Warning Button - Yellow gradient */
.btn-warning {
    background: linear-gradient(135deg, #ffc107, #ffb300) !important;
    color: #212529 !important;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffb300, #ff9500) !important;
    color: #212529 !important;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4) !important;
}

.btn-warning:focus,
.btn-warning.focus {
    background: linear-gradient(135deg, #ffb300, #ff9500) !important;
    color: #212529 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5) !important;
}

.btn-warning:active,
.btn-warning.active {
    background: linear-gradient(135deg, #e0a800, #d39e00) !important;
    color: #212529 !important;
}

/* Info Button - Cyan gradient */
.btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
    color: white !important;
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496, #117a8b) !important;
    color: white !important;
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.4) !important;
}

.btn-info:focus,
.btn-info.focus {
    background: linear-gradient(135deg, #138496, #117a8b) !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5) !important;
}

.btn-info:active,
.btn-info.active {
    background: linear-gradient(135deg, #117a8b, #10707f) !important;
    color: white !important;
}

/* Light Button - Light gradient */
.btn-light {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    color: #212529 !important;
    border: 1px solid #dee2e6 !important;
}

.btn-light:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6) !important;
    color: #212529 !important;
    box-shadow: 0 5px 15px rgba(248, 249, 250, 0.4) !important;
}

.btn-light:focus,
.btn-light.focus {
    background: linear-gradient(135deg, #e9ecef, #dee2e6) !important;
    color: #212529 !important;
    box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5) !important;
}

.btn-light:active,
.btn-light.active {
    background: linear-gradient(135deg, #dee2e6, #ced4da) !important;
    color: #212529 !important;
}

/* Dark Button - Dark gradient */
.btn-dark {
    background: linear-gradient(135deg, #343a40, #23272b) !important;
    color: white !important;
}

.btn-dark:hover {
    background: linear-gradient(135deg, #23272b, #1d2124) !important;
    color: white !important;
    box-shadow: 0 5px 15px rgba(52, 58, 64, 0.4) !important;
}

.btn-dark:focus,
.btn-dark.focus {
    background: linear-gradient(135deg, #23272b, #1d2124) !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5) !important;
}

.btn-dark:active,
.btn-dark.active {
    background: linear-gradient(135deg, #1d2124, #171a1d) !important;
    color: white !important;
}

/* Button sizes */
.btn-sm {
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
}

.btn-lg {
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
}

/* Outline buttons */
.btn-outline-primary {
    background: transparent !important;
    border: 2px solid #007bff !important;
    color: #007bff !important;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
    border-color: #007bff !important;
}

.btn-outline-secondary {
    background: transparent !important;
    border: 2px solid #6c757d !important;
    color: #6c757d !important;
}

.btn-outline-secondary:hover {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
    color: white !important;
    border-color: #6c757d !important;
}

.btn-outline-success {
    background: transparent !important;
    border: 2px solid #28a745 !important;
    color: #28a745 !important;
}

.btn-outline-success:hover {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    border-color: #28a745 !important;
}

.btn-outline-danger {
    background: transparent !important;
    border: 2px solid #dc3545 !important;
    color: #dc3545 !important;
}

.btn-outline-danger:hover {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
    border-color: #dc3545 !important;
}

.btn-outline-warning {
    background: transparent !important;
    border: 2px solid #ffc107 !important;
    color: #ffc107 !important;
}

.btn-outline-warning:hover {
    background: linear-gradient(135deg, #ffc107, #ffb300) !important;
    color: #212529 !important;
    border-color: #ffc107 !important;
}

.btn-outline-info {
    background: transparent !important;
    border: 2px solid #17a2b8 !important;
    color: #17a2b8 !important;
}

.btn-outline-info:hover {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
    color: white !important;
    border-color: #17a2b8 !important;
}

/* Special action buttons */
.btn-approve {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
}

.btn-approve:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8) !important;
    color: white !important;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4) !important;
}

.btn-reject {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
}

.btn-reject:hover {
    background: linear-gradient(135deg, #c82333, #bd2130) !important;
    color: white !important;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4) !important;
}

.btn-revision {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
    color: white !important;
}

.btn-revision:hover {
    background: linear-gradient(135deg, #138496, #117a8b) !important;
    color: white !important;
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.4) !important;
}

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

.gradient-bg-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

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

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

.gradient-bg-warning {
    background: linear-gradient(135deg, #ffc107, #ffb300);
}

.gradient-bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.gradient-bg-light {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.gradient-bg-dark {
    background: linear-gradient(135deg, #343a40, #23272b);
}

.polished-shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.polished-shadow-hover:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.polished-border {
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.polished-border-rounded {
    border: 1px solid #e9ecef;
    border-radius: 12px;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

@media (max-width: 768px) {
    .status-timeline {
        flex-direction: column;
        gap: 1rem;
    }

    .timeline-item {
        min-width: auto;
    }

    .status-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .details-grid,
    .customer-details-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .detail-item {
        padding: 0.5rem;
    }

    .th-content {
        font-size: 0.75rem;
        padding: 0.375rem 0;
    }

    .modern-table {
        font-size: 0.8rem;
    }

    .enhanced-table-card:hover,
    .enhanced-card:hover {
        transform: none;
    }

    .info-section,
    .customer-info-section {
        padding: 0.75rem;
        margin: 0.25rem 0;
    }

    .status-details-card {
        padding: 0.75rem;
    }

    .compact-row {
        margin-bottom: 0.75rem;
    }

    .card-header {
        padding: 0.5rem 0.75rem !important;
    }

    .btn {
        padding: 0.625rem 1.25rem !important;
        font-size: 0.875rem !important;
    }

    .btn-sm {
        padding: 0.375rem 0.875rem !important;
        font-size: 0.75rem !important;
    }

    .btn-lg {
        padding: 0.875rem 1.75rem !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {
    .details-grid,
    .customer-details-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .status-details-card,
    .info-section,
    .customer-info-section {
        padding: 0.5rem;
        margin: 0.25rem 0;
    }

    .compact-row {
        margin-bottom: 0.5rem;
    }
}
