/* ============================================
   SUPPORT & CONTACT PAGE STYLES
   Add these to your style.css file
   ============================================ */

/* Contact Hero Section */
.contact-hero {
    background: linear-gradient(135deg, rgba(250, 213, 14, 0.1) 0%, rgba(250, 213, 14, 0.05) 100%);
}

/* Contact Info Items */
.contact-info-item {
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 10px;
}

.contact-info-item:hover {
    background: rgba(250, 213, 14, 0.1);
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #e8c90e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* Form Enhancements */
.form-label {
    color: #333;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(250, 213, 14, 0.25);
}

/* Accordion Styling */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-button {
    background: white;
    color: #333;
    font-weight: 600;
    border: none;
    padding: 20px;
    font-size: 1rem;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: #000;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    background-size: 1.25rem;
}

.accordion-body {
    padding: 20px;
    background: #f8f9fa;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 35px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 10px;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: 35px;
    animation: fadeInLeft 0.5s ease forwards;
    opacity: 0;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px rgba(250, 213, 14, 0.3);
    z-index: 2;
}

.timeline-item .card {
    transition: all 0.3s ease;
}

.timeline-item .card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Status Badges */
.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    text-transform: capitalize;
}

.status-open {
    background: #ffc107;
    color: #000;
}

.status-in-progress {
    background: #0dcaf0;
    color: #000;
}

.status-closed {
    background: #198754;
    color: #fff;
}

/* Admin Dashboard Specific */
.ticket-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ticket-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.ticket-card .card-title {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
}

/* Modal Enhancements */
.modal-header {
    background: linear-gradient(135deg, var(--primary-color), #e8c90e);
    color: #000;
    border-bottom: none;
}

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

/* Stats Cards */
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* Reply Message Styles */
.reply-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    animation: slideIn 0.3s ease;
}

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

.reply-admin {
    background: #f8f9fa;
    border-left: 4px solid #198754;
}

.reply-customer {
    background: rgba(13, 202, 240, 0.1);
    border-left: 4px solid #0dcaf0;
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d1e7dd, #c3e6cb);
    color: #0f5132;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c2c7);
    color: #842029;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffe69c);
    color: #664d03;
}

.alert-info {
    background: linear-gradient(135deg, #cff4fc, #b6effb);
    color: #055160;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .timeline {
        padding-left: 25px;
    }
    
    .timeline::before {
        left: 8px;
    }
    
    .timeline-item::before {
        left: -20px;
        width: 12px;
        height: 12px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Print Styles for Tickets */
@media print {
    .navbar,
    .btn,
    .modal-footer,
    footer {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .status-badge {
        border: 1px solid #000;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .contact-hero {
        background: linear-gradient(135deg, rgba(250, 213, 14, 0.2) 0%, rgba(250, 213, 14, 0.1) 100%);
    }
    
    .contact-info-item:hover {
        background: rgba(250, 213, 14, 0.15);
    }
    
    .form-label {
        color: #fff;
    }
    
    .accordion-button {
        background: #2a2a2a;
        color: #fff;
    }
    
    .accordion-button:not(.collapsed) {
        background: var(--primary-color);
        color: #000;
    }
    
    .accordion-body {
        background: #1a1a1a;
        color: #fff;
    }
    
    .ticket-card {
        background: #2a2a2a;
        color: #fff;
    }
    
    .ticket-card .card-title {
        color: #fff;
    }
    
    .reply-admin {
        background: #2a2a2a;
    }
    
    .reply-customer {
        background: rgba(13, 202, 240, 0.2);
    }
}

/* Additional Utility Classes */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}