/* Custom styles for the app */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
}

.card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

.card-header {
    font-weight: 600;
    border-bottom: 1px solid #eaeaea;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Repository digest styling */
pre#repoDigest {
    max-height: 600px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 0.9rem;
    border: 1px solid #eaeaea;
}

/* Example repository buttons */
.example-repo {
    transition: all 0.2s;
    border-radius: 5px;
}

.example-repo:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Loading animation */
@keyframes fadeInOut {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

#loadingIndicator {
    animation: fadeInOut 1.5s infinite;
}

/* Directory structure tree view */
.tree-view {
    font-family: monospace;
    line-height: 1.5;
}

.tree-view ul {
    list-style-type: none;
    padding-left: 20px;
}

.tree-view li {
    position: relative;
    padding-left: 15px;
}

.tree-view li::before {
    content: "├── ";
    position: absolute;
    left: -10px;
    color: #666;
}

.tree-view li:last-child::before {
    content: "└── ";
}

/* File content styling */
.file-content {
    margin-bottom: 20px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
}

.file-content .file-header {
    background-color: #f1f1f1;
    padding: 8px 12px;
    border-bottom: 1px solid #eaeaea;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-content .file-body {
    overflow: auto;
    max-height: 400px;
}

.file-content pre {
    margin: 0;
    padding: 12px;
    border-radius: 0;
}

/* Code block styling */
.hljs {
    border-radius: 0 0 8px 8px;
    padding: 15px;
    overflow-x: auto;
}

/* Stats in repository overview */
.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #343a40;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Responsive design adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .file-content .file-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-content .file-header .actions {
        margin-top: 5px;
    }
} 