/* Support Popup Styles - Enhanced */

/* Button in sidebar */
#kms-support-btn {
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--icon, #aebac1);
}

#kms-support-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transform: scale(1.1);
}

#kms-support-btn svg {
    width: 24px;
    height: 24px;
}

/* Modal Overlay */
.kms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2147483647;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modal Content */
.kms-modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 28px;
    border-radius: 16px;
    width: 420px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: #111b21;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode support */
body.dark .kms-modal-content,
[data-theme="dark"] .kms-modal-content {
    background: linear-gradient(145deg, #222e35 0%, #1a242b 100%);
    color: #e9edef;
}

/* Modal Header */
.kms-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(134, 150, 160, 0.2);
}

.kms-modal-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #008069 0%, #25D366 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kms-modal-close {
    background: rgba(134, 150, 160, 0.1);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #8696a0;
    padding: 8px 12px;
    border-radius: 8px;
    line-height: 1;
    transition: all 0.2s ease;
}

.kms-modal-close:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
}

/* Form Groups */
.kms-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kms-form-label {
    font-size: 13px;
    font-weight: 600;
    color: #8696a0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kms-form-input {
    padding: 14px 16px;
    border: 2px solid #e9edef;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    background: #fff;
    color: #111b21;
    transition: all 0.3s ease;
}

body.dark .kms-form-input,
[data-theme="dark"] .kms-form-input {
    border-color: #3b4a54;
    background: #111b21;
    color: #e9edef;
}

.kms-form-input:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.15);
}

.kms-form-input::placeholder {
    color: #8696a0;
}

/* Submit Button */
.kms-submit-btn {
    background: linear-gradient(135deg, #008069 0%, #25D366 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 128, 105, 0.3);
}

.kms-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 128, 105, 0.4);
}

.kms-submit-btn:active {
    transform: translateY(0);
}

/* Floating Button (fallback) specific styles */
#kms-support-btn[style*="position: fixed"] {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}