/* Biral - Professional Sci-Fi Theme */

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0e1a;
    color: #e8eaed;
    min-height: 100vh;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem;
}

.App-header {
    background: linear-gradient(135deg, #1a1f3a 0%, #2a2f4a 100%);
    padding: 1rem 2rem;
    color: #ffffff;
    box-shadow: 0 2px 20px rgba(42, 47, 74, 0.4);
    border-bottom: 1px solid rgba(100, 120, 180, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    margin-bottom: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.app-logo {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(100, 120, 180, 0.3));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.app-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(100, 120, 180, 0.5));
    border-color: rgba(255, 255, 255, 0.6);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.App-header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.App-header p {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.card {
    background: #151b2e;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 120, 180, 0.15);
    backdrop-filter: blur(10px);
}

.card h2 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #6478b4;
    padding-bottom: 0.6rem;
    font-weight: 600;
    font-size: 1.3rem;
}

.repo-list { 
    margin-bottom: 20px; 
}

.repo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid rgba(100, 120, 180, 0.2);
    border-radius: 8px;
    margin-bottom: 10px;
    background: rgba(100, 120, 180, 0.06);
    transition: all 0.3s ease;
}

.repo-item:hover {
    background: rgba(100, 120, 180, 0.1);
    transform: translateY(-1px);
}

.repo-info h3 { 
    margin-bottom: 5px; 
    color: #ffffff; 
}

.repo-info p { 
    color: rgba(255, 255, 255, 0.7); 
    font-size: 0.9em; 
}

.repo-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-indexed { 
    background: rgba(76, 175, 80, 0.1); 
    color: #4caf50; 
    border: 1px solid #4caf50; 
}

.status-indexing { 
    background: rgba(255, 152, 0, 0.1); 
    color: #ff9800; 
    border: 1px solid #ff9800; 
}

.status-not_indexed { 
    background: rgba(244, 67, 54, 0.1); 
    color: #f44336; 
    border: 1px solid #f44336; 
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: #6478b4;
    color: white;
    border: none;
    box-shadow: 0 2px 12px rgba(100, 120, 180, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover { 
    background: #5a6ba0; 
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(100, 120, 180, 0.4);
}

.btn-danger {
    background: #e74c3c;
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    transition: all 0.3s ease;
}

.btn-danger:hover { 
    background: #c0392b; 
    transform: translateY(-1px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(100, 120, 180, 0.3);
    border-radius: 6px;
    font-size: 0.95rem;
    background: rgba(10, 14, 26, 0.8);
    color: #ffffff;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #6478b4;
    box-shadow: 0 0 0 3px rgba(100, 120, 180, 0.2);
    background: rgba(10, 14, 26, 0.9);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group small {
    color: rgba(255, 255, 255, 0.7);
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: rgba(100, 120, 180, 0.04);
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(100, 120, 180, 0.15);
}

.message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    max-width: 80%;
}

.message.user {
    background: #6478b4;
    color: white;
    margin-left: auto;
    text-align: right;
    box-shadow: 0 2px 8px rgba(100, 120, 180, 0.3);
}

.message.assistant {
    background: rgba(100, 120, 180, 0.08);
    color: #ffffff;
    border: 1px solid rgba(100, 120, 180, 0.2);
}

.message pre {
    background: rgba(10, 14, 26, 0.8);
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    margin-top: 10px;
    white-space: pre-wrap;
    color: #ffffff;
    border: 1px solid rgba(100, 120, 180, 0.3);
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(100, 120, 180, 0.3);
    border-radius: 6px;
    font-size: 0.95rem;
    background: rgba(10, 14, 26, 0.8);
    color: #ffffff;
    transition: all 0.3s ease;
}

.chat-input input:focus {
    outline: none;
    border-color: #6478b4;
    box-shadow: 0 0 0 3px rgba(100, 120, 180, 0.2);
    background: rgba(10, 14, 26, 0.9);
}

.chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-input button {
    padding: 12px 30px;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(100, 120, 180, 0.3);
    border-top: 3px solid #6478b4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden { 
    display: none; 
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(100, 120, 180, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 120, 180, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 120, 180, 0.6);
}

