﻿/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f0f2f5;
    padding: 20px;
}*/
/* Chat Button */
.chat-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #b1c906, #005423);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
    border: none;
}

    .chat-button:hover {
        transform: scale(1.08);
        box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
    }

    .chat-button i {
        font-size: 22px;
        color: white;
    }

/* Chat Window */
.chat-window {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 340px;
    max-height: 560px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    animation: slideUp 0.3s ease;
}

    .chat-window.active {
        display: flex;
    }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #b1c906, #005423);
    color: white;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 34px;
    height: 34px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #005423;
}

    .chat-avatar i {
        font-size: 16px;
    }

.chat-header-text h3 {
    font-size: 1rem;
    margin-bottom: 2px;
    font-weight: 600;
}

.chat-header-text p {
    font-size: 0.75rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

    .close-button:hover {
        opacity: 0.8;
    }

/* Ticket Form */
.ticket-form-container {
    padding: 18px;
    overflow-y: auto;
    max-height: 460px;
}

    .ticket-form-container h6 {
        font-size: 1rem;
        color: #333;
        margin-bottom: 16px;
        font-weight: 600;
    }

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
}

    .form-label .required {
        color: #dc3545;
        margin-left: 2px;
    }

.form-control,
.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s;
    outline: none;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #005423;
        box-shadow: 0 0 0 2px rgba(0, 84, 35, 0.12);
    }

    .form-control::placeholder {
        color: #adb5bd;
    }

textarea.form-control {
    resize: vertical;
    min-height: 70px;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #b1c906, #005423);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

    .btn-submit:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0, 84, 35, 0.3);
    }

    .btn-submit:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .btn-submit i {
        margin-right: 6px;
    }



/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 16px);
        right: 8px;
        bottom: 75px;
        max-height: calc(100vh - 110px);
    }

    .chat-button {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

/* Success / Error Messages */
.message-alert {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    border-radius: 6px;
    animation: slideDown 0.3s ease;
}

    /* Show alert */
    .message-alert.show {
        display: flex;
    }

    /* Text */
    .message-alert .alert-text {
        flex: 1;
        font-size: 0.85rem;
    }

    /* Icons */
    .message-alert i {
        margin-right: 6px;
    }

    /* Success */
    .message-alert.success {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    /* Error */
    .message-alert.error {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

    /* OK Button */
    .message-alert .alert-ok-btn {
        padding: 4px 10px;
        font-size: 0.75rem;
        font-weight: 600;
        border-radius: 4px;
        border: none;
        cursor: pointer;
        transition: opacity 0.2s, transform 0.2s;
    }

    .message-alert.success .alert-ok-btn {
        background: #28a745;
        color: #fff;
    }

    .message-alert.error .alert-ok-btn {
        background: #dc3545;
        color: #fff;
    }

    .message-alert .alert-ok-btn:hover {
        opacity: 0.9;
        transform: scale(1.05);
    }

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
