:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #FFAA00;/*Цвет значков*/
    --light-color: #ecf0f1;
    --dark-color: #000D59;/*Цвет плашки "Академия"*/
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --animation-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
}

/* Стили для чат-бота */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    height: 600px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    transition: all var(--animation-speed) ease;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
}

#chatbot-container.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

#chatbot-header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
}

#chatbot-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 9px;
    display: flex;
    align-items: center;
}

.zag{
    display: flex;
    align-items: center;
    width: 50px;
    height: 50px;
    margin-right: 15px;
    font-size: 20px;
}

#chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
}

#chatbot-close:hover {
    transform: scale(1.2);
}

#chatbot-status {
    position: absolute;
    bottom: 5px;
    left: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success-color);
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

#chatbot-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f5f7fa;
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 15px;
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    font-size: 14px;
    position: relative;
    animation: fadeIn 0.3s ease;
    box-shadow: var(--shadow);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    background-color: white;
    border-bottom-left-radius: 5px;
    align-self: flex-start;
    color: var(--dark-color);
    border: 1px solid #e0e0e0;
}

.user-message {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border-bottom-right-radius: 5px;
    margin-left: auto;
}

.message-time {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.4);
    margin-top: 5px;
    text-align: right;
}

.user-message .message-time {
    color: rgba(255, 255, 255, 0.7);
}

#chatbot-input-container {
    display: flex;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background-color: white;
    align-items: center;
}

#chatbot-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    outline: none;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    transition: border-color var(--animation-speed);
}

#chatbot-input:focus {
    border-color: var(--secondary-color);
}

#chatbot-send {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color var(--animation-speed);
}

#chatbot-send:hover {
    background-color: var(--primary-color);
}

#chatbot-send i {
    font-size: 18px;
}

#chatbot-launcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 999;
    transition: all var(--animation-speed);
}

#chatbot-launcher:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

#chatbot-launcher i {
    font-size: 30px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.hidden {
    display: none !important;
}

.quick-reply {
    display: inline-block;
    margin: 5px;
    padding: 8px 15px;
    background-color: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    color: var(--dark-color);
    border: 1px solid #e0e0e0;
    transition: all var(--animation-speed);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quick-reply:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.quick-replies-container {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
}

.typing-indicator {
    display: flex;
    padding: 10px 15px;
    background-color: white;
    border-radius: 18px;
    align-self: flex-start;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #bbb;
    border-radius: 50%;
    margin: 0 2px;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingAnimation {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

.document-card {
    background-color: white;
    border-radius: 10px;
    padding: 12px;
    margin: 5px 0;
    border: 1px solid #e0e0e0;
    box-shadow: var(--shadow);
}

.document-card i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.contact-card {
    background-color: white;
    border-radius: 10px;
    padding: 12px;
    margin: 5px 0;
    border: 1px solid #e0e0e0;
    box-shadow: var(--shadow);
}

.contact-card i {
    color: var(--accent-color);
    margin-right: 8px;
}

.schedule-item {
    display: flex;
    margin-bottom: 8px;
}

.schedule-day {
    font-weight: 500;
    min-width: 80px;
}

.menu-button {
    background-color: var(--light-color);
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    margin: 5px;
    cursor: pointer;
    transition: all var(--animation-speed);
    font-size: 13px;
    display: flex;
    align-items: center;
}

.menu-button i {
    margin-right: 8px;
}

.menu-button:hover {
    background-color: var(--secondary-color);
    color: white;
}

.menu-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.back-button {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.back-button i {
    margin-right: 5px;
}

.rating-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.rating-star {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
    margin: 0 3px;
}

.rating-star:hover, .rating-star.active {
    color: var(--warning-color);
}

.feedback-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-top: 10px;
    font-family: 'Roboto', sans-serif;
    resize: none;
    height: 60px;
}

.submit-feedback {
    background-color: var(--success-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color var(--animation-speed);
}

.submit-feedback:hover {
    background-color: #27ae60;
}

.confirmation-message {
    text-align: center;
    color: var(--success-color);
    font-weight: 500;
    margin-top: 10px;
    animation: fadeIn 0.5s ease;
}

@media (max-width: 480px) {
    #chatbot-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    
    #chatbot-launcher {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
}