/* Support Portal Styles - Matching Fooodis Platform Design */

/* CSS Variables - Exact match with blog page */
:root {
    --primary-color: #e8f24c; /* Yellow accent color */
    --secondary-color: #1e2127; /* Dark background */
    --text-color: #ffffff; /* White text */
    --accent-color: #c7d037; /* Darker yellow for hover states */
    --dark-accent: #1d2029; /* Slightly darker background for cards */
    --light-gray: #f5f5f5; /* Light gray for backgrounds */
    --border-color: rgba(232, 242, 76, 0.3); /* Semi-transparent yellow for borders */
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* Shadow for cards */
}

/* Global body styling to match platform */
body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--secondary-color) !important;
    color: var(--text-color) !important;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
}

/* Override any existing background */
html {
    background-color: var(--secondary-color) !important;
}

/* Force main element and all divs to use correct background - Override external stylesheets */
main.support-main,
.support-main,
main {
    background-color: #1e2127 !important;
    background: #1e2127 !important;
    min-height: 100vh !important;
}

/* Ensure all container divs match */
.support-container,
.support-header,
.ticket-section,
.section-header,
.user-status-section,
.ticket-history-section {
    background-color: #1e2127 !important;
    background: #1e2127 !important;
}

/* Authentication section styling */
.auth-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.auth-buttons .btn-primary,
.auth-buttons .btn-secondary {
    min-width: 150px;
    padding: 12px 24px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

/* Hide ticket creation initially (replaces inline style) */
#ticketCreation.hidden {
    display: none !important;
}

/* Show ticket creation when user is logged in */
#ticketCreation.visible {
    display: block !important;
}

/* User Dashboard Styling */
.user-dashboard {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.user-dashboard.hidden {
    display: none !important;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-header h2 {
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.user-welcome {
    color: var(--text-color);
    font-weight: 500;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--dark-accent);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    width: 60px;
    text-align: center;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
    line-height: 1;
}

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

/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
    gap: 5px;
}

.tab-button {
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: #a0a0a0;
    cursor: pointer;
    font-size: 16px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button:hover {
    color: var(--text-color);
    background: rgba(232, 242, 76, 0.1);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(232, 242, 76, 0.1);
}

/* Tab Content */
.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

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

/* Ticket Filters */
.ticket-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
}

.filter-group select {
    background: var(--dark-accent);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 4px;
    min-width: 150px;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(232, 242, 76, 0.2);
}

/* Tickets List */
.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ticket-card {
    background: var(--dark-accent);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ticket-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--card-shadow);
}

.ticket-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 15px;
}

.ticket-id {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 14px;
}

.ticket-subject {
    flex: 1;
    font-weight: 600;
    color: var(--text-color);
    margin: 5px 0;
}

.ticket-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.ticket-status,
.ticket-priority,
.ticket-category {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.ticket-description {
    color: #a0a0a0;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #a0a0a0;
}

.ticket-actions {
    display: flex;
    gap: 10px;
}

.ticket-actions button {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ticket-actions button:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

/* Current page highlighting */
.current-page,
.nav-item a.current-page,
.mobile-nav-item a.current-page,
.footer-nav-item a.current-page {
    background: rgba(232, 242, 76, 0.2) !important;
    color: var(--primary-color) !important;
}

/* Language tab styling */
.language-toggle {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.language-tab {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(232, 242, 76, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.language-tab:hover {
    background: rgba(232, 242, 76, 0.2);
    transform: translateY(-1px);
}

.language-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 600;
}

.language-tab img {
    width: 16px;
    height: 12px;
    margin-right: 5px;
}

/* Support Portal Container */
.support-portal {
    background-color: var(--secondary-color);
    color: var(--text-color);
    min-height: 100vh;
    padding-top: 0;
}

/* Main Content Section */
.support-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--secondary-color);
}

/* Support Portal Header */
.support-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-accent) 100%);
}

.support-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.support-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0;
    opacity: 0.9;
}

/* Hidden utility class */
.hidden {
    display: none !important;
}

/* Ticket Sections & Cards */
.ticket-section {
    background: var(--dark-accent);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-header h1, 
.section-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
}

.section-header p {
    color: var(--text-color);
    font-size: 1.1rem;
    opacity: 0.9;
}

.header-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

/* Forms */
.ticket-form, 
.login-form {
    max-width: 800px;
    margin: 0 auto;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 242, 76, 0.2);
    background: rgba(30, 33, 39, 0.8);
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Platform-matching buttons */
.btn-primary, 
.btn-secondary,
.btn,
button {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    min-width: 120px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 242, 76, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Customer Tickets Grid */
.tickets-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.customer-ticket-card {
    background: var(--dark-accent);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.customer-ticket-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.ticket-card-title {
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.ticket-card-id {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.ticket-card-status {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Platform-matching status colors */
.status-open { 
    background: rgba(232, 242, 76, 0.2); 
    color: var(--primary-color);
    border: 1px solid rgba(232, 242, 76, 0.3);
}
.status-in-progress { 
    background: rgba(255, 159, 67, 0.2); 
    color: #ff9f43;
    border: 1px solid rgba(255, 159, 67, 0.3);
}
.status-resolved { 
    background: rgba(46, 204, 113, 0.2); 
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}
.status-closed { 
    background: rgba(149, 165, 166, 0.2); 
    color: #95a5a6;
    border: 1px solid rgba(149, 165, 166, 0.3);
}

.ticket-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
}

.ticket-card-priority {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Platform-matching priority colors */
.priority-low { 
    background: rgba(46, 204, 113, 0.2); 
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}
.priority-medium { 
    background: rgba(232, 242, 76, 0.2); 
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}
.priority-high { 
    background: rgba(255, 159, 67, 0.2); 
    color: #ff9f43;
    border: 1px solid rgba(255, 159, 67, 0.3);
}
.priority-urgent { 
    background: rgba(231, 76, 60, 0.2); 
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Platform-matching Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--secondary-color);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.modal-header {
    background: var(--dark-accent);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-color);
    font-weight: 700;
}

.close {
    color: rgba(255, 255, 255, 0.6);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: var(--primary-color);
    background: rgba(232, 242, 76, 0.1);
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
    background: var(--secondary-color);
}

.modal-footer {
    background: var(--dark-accent);
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Platform-matching Notifications */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.notification {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--card-shadow);
    transform: translateX(100%);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
}

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

.notification.success {
    border-left: 4px solid #2ecc71;
    background: rgba(46, 204, 113, 0.1);
}

.notification.error {
    border-left: 4px solid #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.notification.info {
    border-left: 4px solid var(--primary-color);
    background: rgba(232, 242, 76, 0.1);
}

/* Admin Dashboard Styling for User Portal */
.admin-dashboard-style {
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 0;
    margin: 0;
}

.dashboard-header {
    background: var(--secondary-color);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-header h2 {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.dashboard-header p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 14px;
}

/* Ticket Category Tabs - Exact Admin Style */
.ticket-tabs {
    display: flex;
    background: var(--secondary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    padding: 0;
    overflow-x: auto;
}

.ticket-tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-tab:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
}

.ticket-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(232, 242, 76, 0.1);
}

.tab-count {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

.ticket-tab.active .tab-count {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* Split View Layout - Exact Admin Style */
.ticket-split-view {
    display: flex;
    min-height: 400px;
    background: var(--secondary-color);
}

.ticket-list-panel {
    width: 40%;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    background: var(--secondary-color);
}

.ticket-details-panel {
    width: 60%;
    display: flex;
    flex-direction: column;
    background: var(--secondary-color);
}

/* Ticket Controls - Admin Style */
.ticket-controls {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: var(--secondary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticket-controls select,
.ticket-controls input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.ticket-controls select:focus,
.ticket-controls input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(232, 242, 76, 0.2);
}

.ticket-controls input[type="text"] {
    flex: 1;
    min-width: 150px;
}

/* Tickets Header - Admin Style */
.tickets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--secondary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tickets-header h3 {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.refresh-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    color: var(--text-color);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

/* Admin Tickets List - Exact Style */
.admin-tickets-list {
    flex: 1;
    overflow-y: auto;
    background: var(--secondary-color);
}

.admin-ticket-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--secondary-color);
}

.admin-ticket-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.admin-ticket-item.selected {
    background: rgba(232, 242, 76, 0.1);
    border-left: 3px solid var(--primary-color);
}

.ticket-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.ticket-id {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.ticket-status-badge {
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.ticket-status-badge.open {
    background: #ff4444;
    color: white;
}

.ticket-subject {
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.ticket-customer {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-bottom: 6px;
}

.ticket-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.ticket-priority {
    display: flex;
    align-items: center;
    gap: 4px;
}

.priority-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.priority-dot.low { background: #28a745; }
.priority-dot.medium { background: #ffc107; }
.priority-dot.high { background: #fd7e14; }
.priority-dot.urgent { background: #dc3545; }

/* Ticket Details Panel - Admin Style */
.ticket-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--secondary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticket-details-header h3 {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.ticket-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    color: var(--text-color);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

/* Admin Ticket Details - Exact Style */
.admin-ticket-details {
    flex: 1;
    overflow-y: auto;
    background: var(--secondary-color);
}

.no-ticket-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 40px;
}

.no-ticket-selected i {
    font-size: 48px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.3);
}

.no-ticket-selected h4 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    margin-bottom: 8px;
}

.no-ticket-selected p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .support-container {
        padding: 1rem;
    }
    
    .ticket-section {
        padding: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary, .btn-secondary {
        justify-content: center;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .ticket-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .ticket-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Platform-matching Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Additional platform-specific utilities */
.text-accent {
    color: var(--primary-color);
}

.bg-accent {
    background-color: var(--primary-color);
}

.border-accent {
    border-color: var(--primary-color);
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Split-View Ticket Details Styles */
.selected-ticket-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    overflow-y: auto;
}

.ticket-header-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
}

.ticket-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.ticket-title-row h4 {
    margin: 0;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.ticket-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-meta-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-item strong {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-item span {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

/* Ticket Description */
.ticket-description {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
}

.ticket-description h5 {
    margin: 0 0 12px 0;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
}

.ticket-description-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 14px;
}

/* Conversation Section */
.conversation-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.conversation-section h5 {
    margin: 0 0 16px 0;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
}

.conversation-history {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    overflow-y: auto;
    max-height: 400px;
}

.conversation-message {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 8px;
    position: relative;
}

.conversation-message.customer-message {
    background: rgba(232, 242, 76, 0.1);
    border-left: 3px solid var(--primary-color);
    margin-left: 0;
    margin-right: 40px;
}

.conversation-message.admin-message {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #3498db;
    margin-left: 40px;
    margin-right: 0;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.message-sender {
    font-weight: 600;
    font-size: 13px;
}

.customer-message .message-sender {
    color: var(--primary-color);
}

.admin-message .message-sender {
    color: #3498db;
}

.message-timestamp {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

.message-content {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 14px;
}

/* Reply Section */
.reply-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
}

.reply-section h5 {
    margin: 0 0 16px 0;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
}

.reply-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reply-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-color);
    padding: 12px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.reply-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(232, 242, 76, 0.2);
}

.reply-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* File Attachment Section */
.attachment-section {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.attachment-header {
    margin-bottom: 12px;
}

.attachment-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.attachment-limit {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 400;
}

.file-upload-area {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(232, 242, 76, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(232, 242, 76, 0.1);
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.file-upload-text i {
    font-size: 24px;
    color: var(--primary-color);
}

.file-list {
    margin-top: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 8px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.file-icon {
    color: var(--primary-color);
    font-size: 16px;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-name {
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
}

.file-size {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

.file-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.file-remove:hover {
    background: rgba(231, 76, 60, 0.1);
}

/* Reply Actions */
.reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reply-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.reply-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.reply-actions .btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    font-weight: 600;
}

.reply-actions .btn-primary:hover {
    background: #d4e043;
}

.reply-actions .btn-primary:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

/* Responsive adjustments for split view */
@media (max-width: 1024px) {
    .ticket-meta-info {
        grid-template-columns: 1fr;
    }
    
    .conversation-history {
        max-height: 250px;
    }
    
    .selected-ticket-content {
        padding: 12px;
        gap: 16px;
    }
    
    .ticket-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .conversation-message.customer-message,
    .conversation-message.admin-message {
        margin-left: 0;
        margin-right: 0;
    }
    
    .reply-actions {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .selected-ticket-content {
        padding: 12px;
        gap: 16px;
    }
    
    .ticket-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .conversation-message.customer-message,
    .conversation-message.admin-message {
        margin-left: 0;
        margin-right: 0;
    }
    
    .reply-actions {
        flex-direction: column;
    }
}
