/* /home/admin/web/apps/mindalai_app/static/css/features/support.css */

/*
 * Стилі для сторінки технічної підтримки MindalAI.
 * Забезпечує уніфікацію з глобальними стилями index.css, включаючи адаптивність і підтримку темної теми.
 */

/* Основні стилі для сторінки підтримки */
.support-page {
    padding: 1rem;
    max-width: 1200px; /* Узгоджено з max-w-7xl в index.html */
    margin: 0 auto;
}

.support-page h1,
.support-page h2,
.support-page h3 {
    font-weight: bold;
    color: #1f2937; /* text-gray-900 */
}

.support-page h1 {
    font-size: 1.875rem; /* text-3xl */
    margin-bottom: 1.5rem;
}

.support-page h2 {
    font-size: 1.5rem; /* text-2xl */
}

.support-page h3 {
    font-size: 1.125rem; /* text-lg */
}

/* Стилі для карток (content_card, info_card) */
.support-page .bg-sky-100,
.support-page .dark:bg-gray-800 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 0.375rem; /* rounded */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
}

.support-page .bg-sky-100 h3,
.support-page .dark:bg-gray-800 h3 {
    color: #1f2937; /* text-gray-900 */
}

.support-page .dark:bg-gray-800 h3 {
    color: #ffffff; /* dark:text-white */
}

.support-page .bg-sky-100 p,
.support-page .dark:bg-gray-800 p {
    color: #4b5563; /* text-gray-700 */
    line-height: 1.6;
}

.support-page .dark:bg-gray-800 p {
    color: #d1d5db; /* dark:text-gray-300 */
}

.support-page .bg-sky-100 a,
.support-page .dark:bg-gray-800 a {
    color: #2563eb; /* text-blue-600 */
    text-decoration: underline;
}

.support-page .dark:bg-gray-800 a {
    color: #60a5fa; /* dark:text-blue-400 */
}

.support-page .bg-sky-100 a:hover,
.support-page .dark:bg-gray-800 a:hover {
    color: #1d4ed8; /* hover:text-blue-700 */
}

/* Стилі для банера */
.support-page .bg-sky-100.text-center {
    padding: 2rem;
    border-radius: 0.375rem; /* rounded */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
}

.support-page .bg-sky-100.text-center h3 {
    font-size: 1.25rem; /* text-xl */
}

/* Стилі для форми */
.support-page form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: #ffffff; /* bg-white */
    border-radius: 0.375rem; /* rounded */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
}

.support-page .dark form {
    background-color: #1f2937; /* dark:bg-gray-800 */
}

.support-page label {
    font-size: 1rem;
    color: #1f2937; /* text-gray-900 */
}

.support-page .dark label {
    color: #ffffff; /* dark:text-white */
}

.support-page select,
.support-page textarea,
.support-page input[type="text"] {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.375rem; /* rounded */
    background-color: #ffffff; /* bg-white */
    color: #1f2937; /* text-gray-900 */
    font-size: 0.875rem;
    width: 100%;
    box-sizing: border-box;
}

.support-page .dark select,
.support-page .dark textarea,
.support-page .dark input[type="text"] {
    background-color: #1f2937; /* dark:bg-gray-800 */
    color: #ffffff; /* dark:text-white */
    border-color: #4b5563; /* dark:border-gray-600 */
}

.support-page select:focus,
.support-page textarea:focus,
.support-page input[type="text"]:focus {
    outline: none;
    border-color: #2563eb; /* focus:border-blue-600 */
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.support-page .dark select:focus,
.support-page .dark textarea:focus,
.support-page .dark input[type="text"]:focus {
    border-color: #60a5fa; /* dark:focus:border-blue-400 */
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
}

.support-page textarea {
    min-height: 150px;
    max-height: 300px;
    resize: vertical;
}

.support-page button {
    background-color: #2563eb; /* bg-blue-600 */
    color: #ffffff; /* text-white */
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem; /* rounded */
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.support-page .dark button {
    background-color: #2563eb; /* dark:bg-blue-600 */
}

.support-page button:hover {
    background-color: #1d4ed8; /* hover:bg-blue-700 */
}

.support-page .dark button:hover {
    background-color: #1d4ed8; /* dark:hover:bg-blue-700 */
}

/* Стилі для повідомлень */
.support-page .error-message {
    color: #dc2626; /* text-red-600 */
    font-size: 1rem;
}

.support-page .dark .error-message {
    color: #f87171; /* dark:text-red-400 */
}

.support-page .success-message {
    color: #16a34a; /* text-green-600 */
    font-size: 1rem;
}

.support-page .dark .success-message {
    color: #4ade80; /* dark:text-green-400 */
}

/* Стилі для інструкцій */
.support-page .instructions {
    margin-top: 1.5rem;
}

.support-page .instructions ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.support-page .instructions li {
    margin-bottom: 0.5rem;
    color: #4b5563; /* text-gray-700 */
}

.support-page .dark .instructions li {
    color: #d1d5db; /* dark:text-gray-300 */
}

.support-page .instructions a {
    color: #2563eb; /* text-blue-600 */
    text-decoration: underline;
}

.support-page .dark .instructions a {
    color: #60a5fa; /* dark:text-blue-400 */
}

.support-page .instructions a:hover {
    color: #1d4ed8; /* hover:text-blue-700 */
}

.support-page .dark .instructions a:hover {
    color: #1d4ed8; /* dark:hover:text-blue-700 */
}

/* Стилі для кнопок тікетів */
.ticket-btn {
    width: 100%;
    text-align: left;
    background-color: #f8f9fa; /* bg-gray-50 */
    color: #1f2937; /* text-gray-900 */
    border: 1px solid #d1d5db; /* border-gray-300 */
    padding: 0.75rem;
    border-radius: 0.375rem; /* rounded */
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dark .ticket-btn {
    background-color: #1f2937; /* dark:bg-gray-800 */
    color: #ffffff; /* dark:text-white */
    border-color: #4b5563; /* dark:border-gray-600 */
}

.ticket-btn:hover {
    background-color: #e9ecef; /* hover:bg-gray-200 */
}

.dark .ticket-btn:hover {
    background-color: #374151; /* dark:hover:bg-gray-700 */
}

.new-ticket-btn {
    background-color: #16a34a; /* bg-green-600 */
    color: #ffffff; /* text-white */
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem; /* rounded */
    cursor: pointer;
    margin-bottom: 1rem;
    transition: background-color 0.2s ease;
}

.dark .new-ticket-btn {
    background-color: #16a34a; /* dark:bg-green-600 */
}

.new-ticket-btn:hover {
    background-color: #15803d; /* hover:bg-green-700 */
}

.dark .new-ticket-btn:hover {
    background-color: #15803d; /* dark:hover:bg-green-700 */
}

.unlink-button {
    background-color: #dc2626; /* bg-red-600 */
    color: #ffffff; /* text-white */
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem; /* rounded */
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background-color 0.2s ease;
}

.dark .unlink-button {
    background-color: #dc2626; /* dark:bg-red-600 */
}

.unlink-button:hover {
    background-color: #b91c1c; /* hover:bg-red-700 */
}

.dark .unlink-button:hover {
    background-color: #b91c1c; /* dark:hover:bg-red-700 */
}

.msg-sent {
    color: #16a34a; /* text-green-600 */
}

.dark .msg-sent {
    color: #4ade80; /* dark:text-green-400 */
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 767px) {
    .support-page {
        padding: 0.5rem;
    }

    .support-page h1 {
        font-size: 1.5rem; /* text-2xl */
    }

    .support-page h2 {
        font-size: 1.25rem; /* text-xl */
    }

    .support-page h3 {
        font-size: 1rem; /* text-base */
    }

    .support-page form {
        padding: 1rem;
        gap: 1rem;
    }

    .support-page select,
    .support-page textarea,
    .support-page input[type="text"] {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    .support-page button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .support-page .bg-sky-100,
    .support-page .dark:bg-gray-800 {
        padding: 1rem;
    }

    .support-page .bg-sky-100.text-center {
        padding: 1.5rem;
    }
}

/* Адаптивність для десктопів */
@media (min-width: 768px) {
    .support-page {
        padding: 1.5rem;
    }

    .support-page form {
        padding: 2rem;
        gap: 1.5rem;
    }

    .support-page select,
    .support-page textarea,
    .support-page input[type="text"] {
        padding: 0.75rem;
        font-size: 1rem;
    }

    .support-page button {
        padding: 0.75rem 1.5rem;
        font-size: 1.125rem;
    }
}
