/* Valor Institute – SAGE Trainer Application Styles */

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0d1b2a;
    color: #e0e1dd;
}

header {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: #1b263b;
    border-bottom: 2px solid #415a77;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#logo {
    width: 60px;
    height: 60px;
    margin-right: 16px;
}

header h1 {
    font-size: 1.6rem;
    margin: 0;
    color: #e0e1dd;
}

header .sage-name {
    color: #e76f51;
}

/* Auth forms */
.auth {
    max-width: 400px;
    margin: 60px auto;
    padding: 20px;
    background-color: #1b263b;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.auth-form {
    display: flex;
    flex-direction: column;
}
.auth-form input {
    margin-bottom: 10px;
    padding: 8px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}
.auth-form button {
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #2a9d8f;
    color: #e0e1dd;
    cursor: pointer;
    transition: background 0.3s ease;
}
.auth-form button:hover {
    background-color: #21867a;
}

/* Main app */
.hidden {
    display: none;
}

#controls {
    display: flex;
    justify-content: flex-end;
    margin: 16px;
}

#controls button {
    background-color: #e76f51;
    border: none;
    color: #e0e1dd;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}
#controls button:hover {
    background-color: #d65c43;
}

#main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 16px 40px;
}

#chat-panel, #skill-tree-panel {
    flex: 1 1 300px;
    background-color: #1b263b;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    max-height: 600px;
    overflow-y: auto;
}

h2 {
    margin-top: 0;
    color: #e76f51;
    border-bottom: 1px solid #415a77;
    padding-bottom: 6px;
}

/* Chat */
.chat-messages {
    height: 350px;
    overflow-y: auto;
    background-color: #0d1b2a;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.chat-messages .message {
    margin-bottom: 8px;
    line-height: 1.4;
}

.chat-form {
    display: flex;
}
.chat-form input[type="text"] {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px 0 0 4px;
    background-color: #415a77;
    color: #e0e1dd;
}
.chat-form button {
    padding: 8px 12px;
    border: none;
    border-radius: 0 4px 4px 0;
    background-color: #2a9d8f;
    color: #e0e1dd;
    cursor: pointer;
    transition: background 0.3s ease;
}
.chat-form button:hover {
    background-color: #21867a;
}

/* Skill Tree */
.skill-tree ul {
    list-style: none;
    padding-left: 20px;
}
.skill-tree li {
    margin-bottom: 4px;
}
.skill-tree details summary {
    cursor: pointer;
    color: #2a9d8f;
}
.skill-tree details[open] > summary {
    color: #e76f51;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Logo animation: star spins slowly */
#logo svg {
    width: 100%;
    height: 100%;
    animation: spin 10s linear infinite;
    fill: #e76f51;
}