Common Styles
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Customer Navigation */
.customer-nav {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Service Form Styles */
.service-form-card {
    background: white;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.form-header {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 20px;
}

.form-body {
    padding: 30px;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-label.required::after {
    content: " *";
    color: #e74c3c;
}

.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    background: linear-gradient(135deg, #3a0ca3, #4361ee);
}

.btn-outline-secondary {
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    border: 2px solid #6c757d;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 30px;
    height: 30px;
    background: #e0e0e0;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    transition: all 0.3s;
}

.step.active .step-circle {
    background: #4361ee;
    transform: scale(1.1);
}

.step-label {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
}

.step.active .step-label {
    color: #4361ee;
    font-weight: 600;
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section-title {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4361ee;
    font-weight: 600;
}

/* Problem Tips */
.problem-tips {
    background: #e8f4fd;
    border-left: 4px solid #3498db;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.problem-tips ul {
    margin-left: 20px;
}

.problem-tips li {
    margin-bottom: 5px;
    font-size: 14px;
}

/* Priority Badges */
.priority-badge {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    margin-right: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.priority-badge:hover {
    transform: translateY(-2px);
}

.priority-badge.low { 
    background: #2ecc71; 
    color: white; 
}

.priority-badge.medium { 
    background: #f39c12; 
    color: white; 
}

.priority-badge.high { 
    background: #e74c3c; 
    color: white; 
}

.priority-badge.urgent { 
    background: #c0392b; 
    color: white; 
}

.priority-badge.selected {
    box-shadow: 0 0 0 2px white, 0 0 0 4px currentColor;
    transform: scale(1.05);
}

/* AC Type Cards */
.ac-type-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
    background: white;
}

.ac-type-card:hover {
    border-color: #4361ee;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.ac-type-card.selected {
    border-color: #4361ee;
    background: #e8f4fd;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(67, 97, 238, 0.2);
}

.ac-type-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #4361ee;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: #4361ee;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Cards */
.card {
    border-radius: 10px;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    margin-top: 30px;
}

/* Alert Styling */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* View Ticket Styles */
.ticket-header-card {
    background: linear-gradient(135deg, #4361ee15, #3a0ca315);
    border: none;
    border-left: 4px solid #4361ee;
}

.ticket-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    min-width: 100px;
    text-align: center;
    text-transform: uppercase;
}

.ticket-status-badge.status-pending {
    background: #ffc107;
    color: #212529;
}

.ticket-status-badge.status-assigned {
    background: #17a2b8;
    color: white;
}

.ticket-status-badge.status-in-progress {
    background: #007bff;
}

.ticket-status-badge.status-completed {
    background: #28a745;
    color: white;
}

.ticket-status-badge.status-cancelled {
    background: #6c757d;
    color: white;
}

.ticket-status-badge.status-closed {
    background: #343a40;
    color: white;
}

/* Priority Indicator */

.priority-indicator.priority-low {
    background: #2ecc71;
}

.priority-indicator.priority-medium {
    background: #f39c12;
}

.priority-indicator.priority-high {
    background: #e74c3c;
}

.priority-indicator.priority-urgent {
    background: #c0392b;
}

/* Updates Timeline */
.updates-timeline {
    position: relative;
    padding-left: 30px;
}

.updates-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    top: 0;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #4361ee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.timeline-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 3px solid #4361ee;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.timeline-body {
    font-size: 14px;
    line-height: 1.6;
}

.timeline-attachment {
    font-size: 12px;
}

/* Engineer Profile */
.engineer-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: #f8f9fa;
    border-radius: 50%;
    border: 3px solid #4361ee;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #6c757d;
}

.engineer-contact a {
    color: #4361ee;
    font-size: 14px;
}

.engineer-contact a:hover {
    text-decoration: underline;
}

/* Empty State */
.empty-state-icon {
    color: #6c757d;
    opacity: 0.5;
}

/* Add Comment Form */
.add-comment-form textarea {
    resize: none;
    min-height: 100px;
}

/* Quick Actions */
.btn-group .btn {
    border-radius: 6px !important;
    margin-right: 5px;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Card Headers */
.card-header.bg-light {
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #4361ee;
}

/* Badge Styling */
.badge {
    padding: 6px 12px;
    font-weight: 500;
}

/* Modal Styles */
.modal-content {
    border-radius: 10px;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    border-radius: 10px 10px 0 0 !important;
}

.modal-title {
    font-weight: 600;
}

/* My Tickets Page Styles */
.stats-card {
    border-radius: 10px;
    border: none;
    transition: all 0.3s;
    color: white;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    height: 100px; /* Fixed height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-card.total { 
    background: linear-gradient(135deg, #6c5ce7, #a29bfe); 
}

.stats-card.pending { 
    background: linear-gradient(135deg, #fdcb6e, #ffeaa7); 
    color: #333;
}

.stats-card.progress { 
    background: linear-gradient(135deg, #74b9ff, #0984e3); 
}

.stats-card.completed { 
    background: linear-gradient(135deg, #00b894, #55efc4); 
}

.stats-card.cancelled { 
    background: linear-gradient(135deg, #d63031, #ff7675); 
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Tickets Container */
.tickets-container {
    background: white;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Ticket Cards */
.ticket-card {
    border-left: 4px solid #4361ee;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s;
    background: white;
}

.ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ticket-card.pending { border-left-color: #fdcb6e; }
.ticket-card.assigned { border-left-color: #74b9ff; }
.ticket-card.in_progress { border-left-color: #0984e3; }
.ticket-card.completed { border-left-color: #00b894; }
.ticket-card.cancelled { border-left-color: #d63031; }

/* Status Badges */
.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    display: inline-block;
    text-transform: uppercase;
}

.badge-pending { 
    background: #fdcb6e; 
    color: #333; 
}

.badge-assigned { 
    background: #74b9ff; 
    color: white; 
}

.badge-in-progress { 
    background: #0984e3; 
    color: white; 
}

.badge-completed { 
    background: #00b894; 
    color: white; 
}

.badge-cancelled { 
    background: #d63031; 
    color: white; 
}

/* Priority Indicators */
.priority-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.priority-urgent { background: #d63031; }
.priority-high { background: #e17055; }
.priority-medium { background: #fdcb6e; }
.priority-low { background: #00b894; }

/* Action Buttons */
.action-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.action-btn:hover {
    transform: translateY(-1px);
}

/* Filter Buttons */
.filter-btn {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 15px;
    margin-right: 10px;
    margin-bottom: 10px;
    background: white;
    color: #333;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.filter-btn:hover, .filter-btn.active {
    border-color: #4361ee;
    background: #4361ee;
    color: white;
    text-decoration: none;
}

/* Search Box */
.search-box {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s;
}

.search-box:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Empty State */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* DataTable Customization */
.dataTables_wrapper {
    margin-top: 20px;
}

.dataTables_length select {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 5px 10px;
}

.dataTables_filter input {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 5px 10px;
}

.dataTables_filter input:focus {
    border-color: #4361ee;
    box-shadow: none;
}

/* Print Styles */
@media print {
    .navbar, .breadcrumb, .btn, .add-comment-form, .modal,
    footer, .card-header .btn-group,
    .filter-btn, .search-box, .dataTables_length, .dataTables_filter {
        display: none !important;
    }
    
    .card, .tickets-container {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12px;
        background: white !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .stats-card {
        break-inside: avoid;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-body {
        padding: 20px;
    }
    
    .step-indicator::before {
        left: 5%;
        right: 5%;
    }
    
    .step-label {
        font-size: 10px;
    }
    
    .priority-badge {
        display: block;
        margin-right: 0;
        width: 100%;
        text-align: center;
    }
    
    .ticket-status-badge {
        min-width: 80px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .updates-timeline {
        padding-left: 20px;
    }
    
    .timeline-marker {
        left: -20px;
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-header span {
        margin-top: 4px;
    }
    
    .stats-card {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 14px;
        margin-right: 5px;
        margin-bottom: 5px;
    }
    
    .action-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .status-badge {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .empty-state {
        padding: 30px 15px;
    }
    
    .empty-state i {
        font-size: 3rem;
    }
}

/* Hover Effects */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

.step {
    display: inline-block;
    text-align: center;
    position: relative;
    flex: 1;
}

.step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #dee2e6;
    z-index: 1;
}

.step.completed:not(:last-child):after,
.step.active:not(:last-child):after {
    background-color: #0d6efd;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    position: relative;
    z-index: 2;
    font-weight: bold;
}

.step.active .step-circle {
    background-color: #0d6efd;
    color: white;
}

.step.completed .step-circle {
    background-color: #198754;
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: #6c757d;
}

.step.active .step-label {
    color: #0d6efd;
    font-weight: 500;
}

.step.completed .step-label {
    color: #198754;
    font-weight: 500;
}

.ac-type-card {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.ac-type-card:hover {
    border-color: #adb5bd;
    background-color: #f8f9fa;
}

.ac-type-card.selected {
    border-color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.ac-type-icon {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.ac-type-card.selected .ac-type-icon {
    color: #0d6efd;
}

.priority-badge {
    display: inline-block;
    padding: 8px 15px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    cursor: pointer;
    border: 2px solid #dee2e6;
    transition: all 0.3s;
}

.priority-badge.low {
    background-color: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
}

.priority-badge.medium {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.priority-badge.high {
    background-color: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
}

.priority-badge.urgent {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.priority-badge.selected {
    border-color: currentColor;
    background-color: rgba(13, 110, 253, 0.1);
}

.review-summary {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.review-section {
    padding: 20px 0;
    border-bottom: 1px solid #dee2e6;
}

.review-section:last-child {
    border-bottom: none;
}

.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    color: #495057;
    padding-bottom: 10px;
    border-bottom: 2px solid #0d6efd;
    margin-bottom: 20px;
}

.problem-tips {
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.problem-tips ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.service-form-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 25px 30px;
}

.form-body {
    padding: 30px;
}

.form-label.required:after {
    content: " *";
    color: #dc3545;
}

.step {
    display: inline-block;
    text-align: center;
    position: relative;
    flex: 1;
}

.step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #dee2e6;
    z-index: 1;
}

.step.active:not(:last-child):after {
    background-color: #0d6efd;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    position: relative;
    z-index: 2;
    font-weight: bold;
}

.step.active .step-circle {
    background-color: #0d6efd;
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: #6c757d;
}

.step.active .step-label {
    color: #0d6efd;
    font-weight: 500;
}

.ac-type-card {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.ac-type-card:hover {
    border-color: #adb5bd;
    background-color: #f8f9fa;
}

.ac-type-card.selected {
    border-color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.ac-type-icon {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.ac-type-card.selected .ac-type-icon {
    color: #0d6efd;
}

.priority-badge {
    display: inline-block;
    padding: 8px 15px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    cursor: pointer;
    border: 2px solid #dee2e6;
    transition: all 0.3s;
}

.priority-badge.low {
    background-color: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
}

.priority-badge.medium {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.priority-badge.high {
    background-color: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
}

.priority-badge.urgent {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.priority-badge.selected {
    border-color: currentColor;
    background-color: rgba(13, 110, 253, 0.1);
}

.review-summary {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.review-summary table th {
    width: 140px;
    font-weight: 600;
    color: #495057;
}

.review-summary table td {
    color: #212529;
}

.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    color: #495057;
    padding-bottom: 10px;
    border-bottom: 2px solid #0d6efd;
    margin-bottom: 20px;
}

.problem-tips {
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.problem-tips ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.service-form-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 25px 30px;
}

.form-body {
    padding: 30px;
}

.form-label.required:after {
    content: " *";
    color: #dc3545;
}