/* Support Page Styles */

/* Stat Cards */
.stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.stat-icon.open {
    background: linear-gradient(135deg, var(--primary-blue), #1d4ed8);
}

.stat-icon.pending {
    background: linear-gradient(135deg, var(--warning-yellow), #d97706);
}

.stat-icon.response {
    background: linear-gradient(135deg, var(--success-green), #059669);
}

.stat-icon.satisfaction {
    background: linear-gradient(135deg, var(--accent-orange), #ea580c);
}

/* Quick Support Options */
.quick-support {
    margin-bottom: 2rem;
}

.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.support-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.support-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-light);
    border-color: var(--primary-blue);
}

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

.option-content {
    flex: 1;
}

.option-content h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.option-content p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-indicator.online {
    color: var(--success-green);
}

.status-indicator i {
    font-size: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Support Tabs */
.support-tabs {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-gray);
}

.tab-header {
    flex: 1;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--text-medium);
    border-bottom: 3px solid transparent;
}

.tab-header:hover {
    background: var(--white);
    color: var(--text-dark);
}

.tab-header.active {
    background: var(--white);
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.tab-content {
    display: none;
    padding: 1.5rem;
}

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

/* Tickets Tab */
.tickets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tickets-filters {
    display: flex;
    gap: 1rem;
}

.tickets-filters select {
    min-width: 150px;
}

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ticket-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: var(--white);
    position: relative;
}

.ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-light);
}

.ticket-card[data-priority="urgent"] {
    border-left: 4px solid var(--danger-red);
}

.ticket-card[data-priority="high"] {
    border-left: 4px solid var(--accent-orange);
}

.ticket-card[data-priority="medium"] {
    border-left: 4px solid var(--warning-yellow);
}

.ticket-card[data-priority="low"] {
    border-left: 4px solid var(--success-green);
}

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

.ticket-info h3 {
    color: var(--text-dark);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.ticket-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-light);
}

.ticket-id {
    font-weight: 600;
    color: var(--primary-blue);
}

.ticket-status {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.ticket-content {
    margin-bottom: 1.5rem;
}

.ticket-content p {
    color: var(--text-medium);
    line-height: 1.5;
}

.ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.ticket-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-light);
}

.ticket-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ticket-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ticket-actions .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    min-width: 80px;
}

/* Status and Priority Badges */
.status-badge, .priority-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.open {
    background: var(--primary-blue);
    color: var(--white);
}

.status-badge.pending {
    background: var(--warning-yellow);
    color: var(--white);
}

.status-badge.resolved {
    background: var(--success-green);
    color: var(--white);
}

.status-badge.closed {
    background: var(--text-lighter);
    color: var(--white);
}

.priority-badge.urgent {
    background: var(--danger-red);
    color: var(--white);
}

.priority-badge.high {
    background: var(--accent-orange);
    color: var(--white);
}

.priority-badge.medium {
    background: var(--warning-yellow);
    color: var(--white);
}

.priority-badge.low {
    background: var(--success-green);
    color: var(--white);
}

/* Knowledge Base Tab */
.knowledge-header {
    margin-bottom: 2rem;
}

.knowledge-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.knowledge-search input {
    flex: 1;
}

.knowledge-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-filter {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--white);
    color: var(--text-medium);
}

.category-filter:hover,
.category-filter.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.knowledge-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.knowledge-section h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--white);
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-light);
    border-color: var(--primary-blue);
}

.article-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-blue-ultra-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.article-content {
    flex: 1;
}

.article-content h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.article-content p {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-lighter);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.recent-articles {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recent-article {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.recent-article:hover {
    background: var(--light-gray);
    border-color: var(--primary-blue);
}

.article-title {
    color: var(--text-dark);
    font-weight: 600;
}

.article-update {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Contact Information Tab */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--white);
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-light);
}

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

.contact-info {
    flex: 1;
}

.contact-info h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.availability {
    margin-bottom: 1rem;
}

.availability .status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--success-green);
}

.availability .status i {
    font-size: 0.5rem;
    animation: pulse 2s infinite;
}

.hours {
    font-size: 0.875rem;
    color: var(--text-light);
}

.phone-numbers, .email-addresses {
    margin-bottom: 1rem;
}

.phone-number, .email-address {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.country, .type {
    color: var(--text-medium);
    font-weight: 600;
}

.number, .address {
    color: var(--text-dark);
    font-family: monospace;
}

.response-time {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

.office-address, .office-hours {
    margin-bottom: 1rem;
}

.office-address p {
    margin: 0.25rem 0;
    color: var(--text-medium);
}

.office-hours p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Emergency Support */
.emergency-support {
    background: linear-gradient(135deg, var(--danger-red), #dc2626);
    color: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.emergency-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.emergency-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.emergency-info {
    flex: 1;
}

.emergency-info h3 {
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.emergency-info p {
    opacity: 0.9;
    margin: 0;
}

/* Live Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--shadow-medium);
    transition: all 0.3s ease;
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px var(--shadow-medium);
}

.chat-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    background: var(--success-green);
    border-radius: 50%;
    border: 2px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-indicator i {
    font-size: 0.4rem;
    animation: pulse 2s infinite;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 12px 40px var(--shadow-medium);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    flex: 1;
}

.agent-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-green);
}

.chat-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: var(--light-gray);
}

.message {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.message.agent {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 0.75rem;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--border-color);
    position: relative;
}

.message.agent .message-content {
    background: var(--white);
}

.message.user .message-content {
    background: var(--primary-blue);
    color: var(--white);
}

.message-content p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

.message-time {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.chat-input button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.chat-input button:hover {
    background: var(--primary-blue-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .support-options {
        grid-template-columns: 1fr;
    }
    
    .tab-headers {
        flex-direction: column;
    }
    
    .tab-header {
        justify-content: center;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .tab-header.active {
        border-left-color: var(--primary-blue);
    }
    
    .tickets-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tickets-filters {
        flex-direction: column;
    }
    
    .ticket-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ticket-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .ticket-actions {
        justify-content: stretch;
    }
    
    .ticket-actions .btn {
        flex: 1;
    }
    
    .knowledge-categories {
        justify-content: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .emergency-content {
        flex-direction: column;
        text-align: center;
    }
    
    .chat-window {
        width: calc(100vw - 40px);
        right: -10px;
    }
}

@media (max-width: 480px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .support-option {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
    
    .phone-number,
    .email-address {
        flex-direction: column;
        gap: 0.25rem;
    }
}