/* Academy Brand Custom Styles for MudBlazor Chat App */

/* Font imports - Add these to your index.html head section */
/*
@import url('https://fonts.googleapis.com/css2?family=Arial:wght@300;400;500;600;700&display=swap');
*/

:root {
    /* Academy Brand Colors */
    --academy-purple: #351f65;
    --academy-purple-80: #5d4c84;
    --academy-purple-60: #8679a3;
    --academy-purple-40: #aea5c1;
    --academy-purple-20: #d7d2e0;

    --academy-gray: #53565a;
    --academy-gray-80: #75787b;
    --academy-gray-60: #989a9c;
    --academy-gray-40: #babbbd;
    --academy-gray-20: #ddddde;

    --academy-red: #d05a57;
    --academy-orange: #f68d2e;
    --academy-yellow: #f2c75c;
    --academy-green: #a9c23f;
    --academy-aqua: #86c8bc;
    --academy-blue: #3e87cb;

    --academy-white: #ffffff;
    --academy-black: #000000;

    /* Typography */
    --academy-font-primary: "Indivisible", "Minion Pro", "Arial", sans-serif;
    --academy-font-fallback: "Arial", sans-serif;
}

/* Global App Styling */
.academy-app {
    font-family: var(--academy-font-primary);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    min-height: 100vh;
}

/* Chat Container Styling */
.academy-chat-container {
    background: linear-gradient(
        145deg,
        #ffffff 0%,
        var(--academy-purple-20) 100%
    );
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(53, 31, 101, 0.1);
}

/* Chat Messages */
.academy-chat-message {
    margin: 16px 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 12px rgba(53, 31, 101, 0.15) !important;
    border-left: 4px solid var(--academy-purple) !important;
}

.academy-chat-message.user {
    background: linear-gradient(
        135deg,
        var(--academy-purple) 0%,
        var(--academy-purple-80) 100%
    ) !important;
    color: white !important;
    border-left: 4px solid var(--academy-aqua) !important;
}

.academy-chat-message.assistant {
    background: var(--academy-white) !important;
    color: var(--academy-gray) !important;
    border-left: 4px solid var(--academy-purple) !important;
}

/* Input Field Styling */
.academy-chat-input .mud-input-root {
    border-radius: 25px !important;
    background: var(--academy-white) !important;
    box-shadow: 0 2px 8px rgba(53, 31, 101, 0.1) !important;
    border: 2px solid var(--academy-purple-40) !important;
}

.academy-chat-input .mud-input-root:focus-within {
    border-color: var(--academy-purple) !important;
    box-shadow: 0 0 0 3px rgba(53, 31, 101, 0.1) !important;
}

/* Button Styling */
.academy-btn-primary {
    background: linear-gradient(
        45deg,
        var(--academy-purple) 0%,
        var(--academy-purple-80) 100%
    ) !important;
    color: white !important;
    border-radius: 25px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    box-shadow: 0 4px 12px rgba(53, 31, 101, 0.3) !important;
    transition: all 0.3s ease !important;
}

.academy-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(53, 31, 101, 0.4) !important;
}

.academy-btn-secondary {
    background: transparent !important;
    color: var(--academy-purple) !important;
    border: 2px solid var(--academy-purple) !important;
    border-radius: 25px !important;
    font-weight: 500 !important;
    text-transform: none !important;
}

.academy-btn-secondary:hover {
    background: var(--academy-purple-20) !important;
    border-color: var(--academy-purple-80) !important;
}

/* Tab Styling */
.academy-tabs .mud-tabs .mud-tab {
    color: var(--academy-gray) !important;
    font-weight: 500 !important;
    text-transform: none !important;
    font-family: var(--academy-font-primary) !important;
}

.academy-tabs .mud-tabs .mud-tab.mud-tab-active {
    color: var(--academy-purple) !important;
}

.academy-tabs .mud-tabs .mud-tab-slider {
    background: var(--academy-purple) !important;
    height: 3px !important;
}

/* Citation Chips */
.academy-citation-chip {
    background: var(--academy-blue) !important;
    color: white !important;
    border-radius: 20px !important;
    margin: 4px !important;
    font-weight: 500 !important;
}

.academy-citation-chip:hover {
    background: var(--academy-purple) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(53, 31, 101, 0.2) !important;
}

/* Follow-up Question Chips */
.academy-followup-chip {
    background: var(--academy-aqua) !important;
    color: var(--academy-gray) !important;
    border-radius: 20px !important;
    margin: 4px !important;
    font-weight: 500 !important;
}

.academy-followup-chip:hover {
    background: var(--academy-green) !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(169, 194, 63, 0.2) !important;
}

/* Cards and Papers */
.academy-card {
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(53, 31, 101, 0.08) !important;
    border: 1px solid var(--academy-purple-20) !important;
    transition: all 0.3s ease !important;
}

.academy-card:hover {
    box-shadow: 0 8px 32px rgba(53, 31, 101, 0.12) !important;
    border-color: var(--academy-purple-40) !important;
    transform: translateY(-2px) !important;
}

/* AppBar/Toolbar */
.academy-appbar {
    background: linear-gradient(
        135deg,
        var(--academy-purple) 0%,
        var(--academy-purple-80) 100%
    ) !important;
    color: white !important;
    box-shadow: 0 2px 12px rgba(53, 31, 101, 0.15) !important;
}

/* Loading and Progress Indicators */
.academy-progress .mud-progress-circular circle {
    stroke: var(--academy-purple) !important;
}

.academy-progress .mud-progress-linear .mud-progress-linear-bar {
    background: linear-gradient(
        90deg,
        var(--academy-purple) 0%,
        var(--academy-blue) 100%
    ) !important;
}

/* Scrollbar Styling (Webkit browsers) */
.academy-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.academy-scrollbar::-webkit-scrollbar-track {
    background: var(--academy-purple-20);
    border-radius: 10px;
}

.academy-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        var(--academy-purple) 0%,
        var(--academy-purple-80) 100%
    );
    border-radius: 10px;
}

.academy-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--academy-purple-80);
}

/* Thought Process and Supporting Content Styling */
.academy-thought-process {
    background: var(--academy-purple-20) !important;
    border-left: 4px solid var(--academy-purple) !important;
    font-family: "Courier New", monospace !important;
    font-size: 0.9rem !important;
    color: var(--academy-gray) !important;
    border-radius: 8px !important;
}

/* Supporting Content Area */
.academy-supporting-content {
    background: linear-gradient(
        135deg,
        var(--academy-aqua-20) 0%,
        var(--academy-blue-20) 100%
    ) !important;
    border: 1px solid var(--academy-blue-40) !important;
    border-radius: 12px !important;
}

/* Default Questions/Quick Actions */
.academy-quick-question {
    background: var(--academy-white) !important;
    border: 2px solid var(--academy-purple-40) !important;
    border-radius: 25px !important;
    color: var(--academy-purple) !important;
    margin: 8px !important;
    transition: all 0.3s ease !important;
}

.academy-quick-question:hover {
    background: var(--academy-purple) !important;
    color: white !important;
    transform: scale(1.02) !important;
    box-shadow: 0 4px 16px rgba(53, 31, 101, 0.2) !important;
}

/* Alerts and Feedback */
.academy-alert-success {
    background: var(--academy-green) !important;
    color: white !important;
}

.academy-alert-info {
    background: var(--academy-blue) !important;
    color: white !important;
}

.academy-alert-warning {
    background: var(--academy-orange) !important;
    color: white !important;
}

.academy-alert-error {
    background: var(--academy-red) !important;
    color: white !important;
}

/* Custom Academy Gradients */
.academy-gradient-primary {
    background: linear-gradient(
        135deg,
        var(--academy-purple) 0%,
        var(--academy-blue) 100%
    ) !important;
}

.academy-gradient-secondary {
    background: linear-gradient(
        135deg,
        var(--academy-aqua) 0%,
        var(--academy-green) 100%
    ) !important;
}

.academy-gradient-warm {
    background: linear-gradient(
        135deg,
        var(--academy-orange) 0%,
        var(--academy-red) 100%
    ) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .academy-chat-container {
        margin: 8px;
        border-radius: 8px;
    }

    .academy-chat-message {
        margin: 12px 0 !important;
    }
}

/* Animation Classes */
.academy-fade-in {
    animation: academyFadeIn 0.5s ease-in-out;
}

@keyframes academyFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.academy-slide-up {
    animation: academySlideUp 0.3s ease-out;
}

@keyframes academySlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
