


.floating-support-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-support-btn:hover {
    transform: scale(1.1);
}

.support-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.support-text {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-support-btn:hover .support-text {
    opacity: 1;
}

.support-tooltip {
    position: absolute;
    bottom: 80px;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px;
    border-radius: 10px;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.floating-support-btn:hover .support-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-content {
    text-align: center;
}

.tooltip-content i {
    color: #667eea;
    margin-bottom: 8px;
    font-size: 18px;
}

.tooltip-content span {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.tooltip-content small {
    font-size: 12px;
    opacity: 0.8;
}


.support-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-panel.active {
    opacity: 1;
    visibility: visible;
}

.support-panel-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.support-panel.active .support-panel-content {
    transform: scale(1);
}

.support-panel-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.support-panel-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.support-panel-header i {
    margin-left: 10px;
}

.support-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.support-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.support-panel-body {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}


.previous-tickets-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.previous-tickets-section h4 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.previous-tickets-section h4 i {
    margin-left: 10px;
    color: #667eea;
}

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.ticket-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ticket-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ticket-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-open {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-closed {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.ticket-date {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
}

.ticket-title {
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.ticket-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.ticket-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ticket-actions .btn {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.ticket-actions .btn:hover {
    transform: translateY(-1px);
}

.load-more-tickets {
    text-align: center;
}

.load-more-tickets .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.load-more-tickets .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.load-more-tickets .btn i {
    margin-left: 8px;
}

.support-option {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.support-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.support-option i {
    font-size: 36px;
    color: #667eea;
    margin-bottom: 15px;
}

.support-option h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.support-option p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.support-action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.support-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}


.support-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
}

.support-form h4 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}

.support-form form {
    display: grid;
    gap: 15px;
}

.support-form input,
.support-form textarea {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: white;
}

.support-form input:focus,
.support-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.support-submit-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.support-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.support-submit-btn i {
    margin-left: 8px;
}


.chat-widget-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

#chat-widget-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-top: 80px;
    
}

#chat-widget-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#chat-widget-modal {
    width: 370px;
    max-height: 80vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 90px;
    left: 0;
    transition: all 0.3s ease;
    transform-origin: bottom left;
}

#chat-widget-modal.hidden {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header #chat-widget-title {
    font-weight: bold;
    font-size: 16px;
}

.chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.chat-header button:hover {
    background: rgba(255, 255, 255, 0.2);
}

#back-to-tickets {
    position: absolute;
    left: 20px;
    font-size: 18px;
}

.chat-main {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.ticket-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.ticket-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin-bottom: 10px;
}

.ticket-item:hover {
    background-color: #f8f9fa;
    transform: translateX(-5px);
}

.no-ticket {
    color: #6c757d;
    padding: 20px;
    text-align: center;
    font-style: italic;
}

.new-ticket-btn {
    display: block;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.new-ticket-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    color: white;
}

.ticket-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: white;
    transition: border-color 0.3s ease;
}

.ticket-input:focus {
    outline: none;
    border-color: #667eea;
}

.ticket-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ticket-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.messages {
    height: 350px;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    max-width: 85%;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.admin {
    align-self: flex-start;
}

.message-content {
    background: #f1f3f4;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
}

.message.user .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.message.admin .message-content {
    background: white;
    border: 1px solid #e9ecef;
}

.message-user {
    font-weight: bold;
    font-size: 0.9em;
    display: block;
    margin-bottom: 5px;
}

.message-text {
    margin: 0;
    word-wrap: break-word;
    line-height: 1.4;
}

.message-time {
    font-size: 0.75em;
    color: #888;
    margin-top: 8px;
    display: block;
    text-align: left;
}

.message.user .message-time {
    color: rgba(255, 255, 255, 0.8);
}

.chat-input {
    display: flex;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    gap: 10px;
}

.input-field {
    flex-grow: 1;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 12px 20px;
    transition: border-color 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #667eea;
}

.send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}


@media (max-width: 768px) {
    .support-panel-content {
        width: 95%;
        margin: 20px;
    }

    .support-panel-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .support-options {
        grid-template-columns: 1fr;
    }

    .previous-tickets-section {
        order: -1;
        
    }

    .tickets-list {
        max-height: 300px;
    }

    .ticket-actions {
        flex-direction: column;
    }

    .ticket-actions .btn {
        width: 100%;
        text-align: center;
    }

    #chat-widget-modal {
        width: 320px;
        left: 10px;
    }

    .floating-support-btn {
        bottom: 20px;
        left: 20px;
    }

    #chat-widget-button {
        margin-top: 70px;
    }
}


[data-theme="dark"] .support-panel-content {
    background: #2d3748;
    color: #e2e8f0;
}

[data-theme="dark"] .support-option {
    background: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .support-form {
    background: #4a5568;
}

[data-theme="dark"] .support-form input,
[data-theme="dark"] .support-form textarea {
    background: #2d3748;
    color: #e2e8f0;
    border-color: #4a5568;
}

[data-theme="dark"] .previous-tickets-section {
    background: #4a5568;
    border-color: #2d3748;
}

[data-theme="dark"] .ticket-item {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .ticket-title {
    color: #e2e8f0;
}

[data-theme="dark"] .ticket-description {
    color: #a0aec0;
}

[data-theme="dark"] .ticket-date {
    color: #718096;
}

[data-theme="dark"] .previous-tickets-section h4 {
    color: #e2e8f0;
}

[data-theme="dark"] #chat-widget-modal {
    background: #2d3748;
    color: #e2e8f0;
}

[data-theme="dark"] .message.admin .message-content {
    background: #4a5568;
    border-color: #4a5568;
}

[data-theme="dark"] .ticket-input {
    background: #2d3748;
    color: #e2e8f0;
    border-color: #4a5568;
}


.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}


.support-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


.support-faq {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.support-faq.hidden {
    display: none;
}

.support-faq h4 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-faq h4 i {
    margin-left: 10px;
    color: #667eea;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.faq-item h5 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.faq-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
}


[data-theme="dark"] .support-faq {
    background: #4a5568;
}

[data-theme="dark"] .faq-item {
    background: #2d3748;
    border-left-color: #667eea;
}

[data-theme="dark"] .faq-item h5 {
    color: #e2e8f0;
}

[data-theme="dark"] .faq-item p {
    color: #a0aec0;
}