.support-widget {
    position: relative;
    bottom: auto;
    right: auto;
    z-index: 1000;
}

.support-widget-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #28a745;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    padding: 0;
}

.support-widget-button:hover {
    transform: scale(1.1);
    background-color: #218838;
}

.support-widget-button.active {
    opacity: 0.6;
    transform: scale(0.95);
}

.support-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    overflow-y: auto;
    padding: 20px 0;
}

.support-modal.show {
    display: block;
}

.support-modal-content {
    position: relative;
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.support-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.support-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

.support-form .form-group {
    margin-bottom: 20px;
}

.support-form label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: 500;
    font-size: 0.95rem;
}

.support-form .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.support-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.support-form select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23444' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
}

.rich-text-toolbar {
    display: flex;
    gap: 5px;
    padding: 8px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.rich-text-toolbar button {
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 6px 10px;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
}

.rich-text-toolbar button:hover {
    background: #e9ecef;
    border-color: #ddd;
}

.rich-text-editor {
    min-height: 150px;
    max-height: 300px;
    overflow-y: auto;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    font-size: 1rem;
    line-height: 1.5;
    background: #fff;
}

.rich-text-editor:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.hidden {
    display: none;
}

.file-upload-container {
    margin-bottom: 10px;
}

.file-upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.file-preview-item {
    position: relative;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f9fa;
}

.file-preview-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 5px;
}

.file-preview-item span {
    display: block;
    font-size: 0.85rem;
    color: #666;
    word-break: break-all;
    padding-right: 20px;
}

.file-preview-item button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    color: #dc3545;
}

.support-form .btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s;
    position: relative;
}

.support-form .btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.support-form .btn-primary:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.spinner-border {
    width: 1rem;
    height: 1rem;
    margin-right: 8px;
}

.form-status .alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 0;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive design for different screen sizes */
@media (max-width: 1200px) {
    .support-widget {
        right: 120px;  /* Maintain consistent spacing */
    }
}

@media (max-width: 768px) {
    .support-widget {
        right: 120px;  /* Keep spacing on tablets */
    }
}

/* Mobile optimizations */
@media (max-width: 600px) {
    .support-widget {
        bottom: 20px;
        right: 120px;  /* Align with other widgets on mobile */
    }

    .support-widget-button {
        width: 40px;
        height: 40px;
        font-size: 16px;
        padding: 0;
    }

    .support-modal {
        padding: 0;
    }

    .support-modal-content {
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .support-modal-header {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .support-modal-header h3 {
        font-size: 1.25rem;
    }

    .support-form {
        flex: 1;
        overflow-y: auto;
        padding-right: 5px;
    }

    .support-form .form-group {
        margin-bottom: 16px;
    }

    .support-form label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .support-form .form-control {
        font-size: 16px;
        padding: 10px 12px;
    }

    .rich-text-toolbar {
        padding: 6px;
        gap: 3px;
    }

    .rich-text-toolbar button {
        padding: 5px 8px;
    }

    .rich-text-editor {
        min-height: 120px;
        font-size: 16px;
        padding: 10px 12px;
    }

    .file-upload-preview {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }

    .support-form .btn-primary {
        padding: 12px 20px;
        font-size: 16px;
        margin-top: 10px;
    }

    .close-modal {
        padding: 10px;
        font-size: 24px;
    }
} 