/* 
    Customer Support Styles for Xotic
    Extends site styles with modern utility classes and support-specific UI components
*/

:root {
    --primary-color: #6366f1;
    --secondary-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --border-color: #e5e7eb;
    --text-dark: #111827;
    --text-light: #6b7280;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Support Page Layout */
.support-container {
    background-color: #ffffff;
    padding-bottom: 50px;
}

.support-header {
    text-align: left !important;
    margin-bottom: 30px;
}

/* Search Box Refinement */
.support-search-wrapper {
    max-width: 800px;
    margin-bottom: 25px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input-group i {
    position: absolute;
    left: 20px;
    color: #6b7280;
    font-size: 20px;
    z-index: 10;
}

.search-input-group input {
    width: 100% !important;
    height: 50px !important;
    border-radius: 8px !important;
    padding-left: 55px !important;
    border: 1px solid #e5e7eb !important;
    font-size: 18px !important;
    color: #111827 !important;
    box-shadow: none !important;
}

.search-input-group input:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
}

/* Breadcrumb Button */
.nav-breadcrumb-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background-color: #f3f4f6;
    border-radius: 10px;
    color: #111827;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none !important;
    transition: 0.2s;
    border: none;
}

.nav-breadcrumb-btn:hover {
    background-color: #e5e7eb;
}

.back-btn-circle {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background-color: #d1d5db !important;
    border: none !important;
    color: #ffffff !important;
    transition: 0.2s;
    padding: 0 !important;
    vertical-align: middle;
    cursor: pointer;
    outline: none !important;
}

.back-btn-circle:hover {
    background-color: #9747fd !important;
}

.back-btn-circle i {
    font-size: 20px;
    line-height: 1;
}

.support-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    overflow: hidden;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.category-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none !important;
}

.category-card:hover {
    border-color: #9747fd;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: #9747fd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.icon-box i {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* Ticket Items */
.ticket-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: 0.2s;
}

.ticket-item:hover {
    border-color: var(--primary-color);
}

/* Tabs */
.tab-nav-wrapper {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.tab-nav-btn {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    font-weight: 600;
    color: var(--text-light);
    position: relative;
    cursor: pointer;
    outline: none !important;
}

.tab-nav-btn.active {
    color: #9747fd;
}

.tab-nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #9747fd;
}

/* Buttons */
.btn-raise {
    background: #9747fd;
    color: white !important;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-raise:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Modal Styling Revisions */
.support-modal-header {
    background: #9747fd !important;
    color: white !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 25px !important;
    border-radius: 12px 12px 0 0 !important;
    border: none !important;
}

.support-modal-header .close {
    color: white !important;
    opacity: 0.9 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 32px !important;
    font-weight: 300 !important;
    float: none !important;
    outline: none !important;
    text-shadow: none !important;
}

.support-modal-header .modal-title {
    margin: 0 !important;
    font-weight: 600 !important;
    font-size: 22px !important;
    order: 2;
    /* Move title to the right */
}

.support-modal-header .close {
    order: 1;
    /* Move close to the left */
}

.modal-content {
    border-radius: 16px !important;
    overflow: hidden !important;
}

.modal-body {
    padding: 30px !important;
}

.form-group label {
    font-weight: 700 !important;
    color: #374151 !important;
    margin-bottom: 8px !important;
    font-size: 15px !important;
}

.form-control {
    height: 48px !important;
    border-radius: 10px !important;
    border: 1px solid #e5e7eb !important;
    background-color: #ffffff !important;
    font-size: 15px !important;
    color: #1f2937 !important;
    box-shadow: none !important;
}

.form-control:focus {
    border-color: #9747fd !important;
    box-shadow: 0 0 0 3px rgba(151, 71, 253, 0.1) !important;
}

textarea.form-control {
    height: auto !important;
}

.modal-footer {
    border-top: none !important;
    padding: 0 30px 30px !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
}

.btn-modal-cancel {
    background: #d1d5db !important;
    color: white !important;
    border: none !important;
    padding: 12px 35px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    transition: 0.2s;
}

.btn-modal-submit {
    background: #9747fd !important;
    color: white !important;
    border: none !important;
    padding: 12px 45px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    transition: 0.2s;
}

.btn-modal-cancel:hover {
    background: #9ca3af !important;
}

.btn-modal-submit:hover {
    opacity: 0.9;
}

/* Media handling */
.media-preview {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.media-item {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    border-left: 5px solid var(--primary-color);
    display: none;
}

.toast.show {
    display: block;
}

/* Bootstrap 5 Utility Backports (for sites using older Bootstrap) */
.fw-bold {
    font-weight: 700 !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.me-3 {
    margin-right: 1rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

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

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.ps-0 {
    padding-left: 0 !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.rounded-3 {
    border-radius: 0.5rem !important;
}

.border-0 {
    border: 0 !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.d-flex {
    display: flex !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

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

.flex-wrap {
    flex-wrap: wrap !important;
}