:root {
    --bg-color: #050b14;
    --panel-bg: rgba(15, 23, 42, 0.6);
    --border-color: #333;
    --text-primary: #e0e0e0;
    --text-secondary: #94a3b8;
    --accent-cyan: #00f3ff;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-purple: #a855f7;
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', sans-serif;
}

body {
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow: hidden;
}

.mono { font-family: var(--font-mono); }

/* --- Layout --- */
.repo-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 100vh;
}

.repo-sidebar {
    background: rgba(5, 11, 20, 0.95);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.repo-main {
    padding: 20px;
    overflow-y: auto;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(0, 243, 255, 0.02) 0%, transparent 70%);
}

/* --- Components --- */
.cyber-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 15px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cyber-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.search-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 10px;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border-radius: 4px;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

/* --- Grid View --- */
.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.file-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    background: rgba(0, 243, 255, 0.05);
}

.file-icon {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.file-name {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
}

.file-meta {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

.file-type-badge {
    font-size: 0.6rem;
    padding: 2px 4px;
    background: #333;
    border-radius: 2px;
    color: #fff;
}

/* --- List View --- */
.repo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.list-item {
    display: grid;
    grid-template-columns: 40px 3fr 1fr 1fr 100px;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 10px;
    transition: all 0.2s;
}

.list-item:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 243, 255, 0.05);
}

/* --- Drag & Drop Zone --- */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
    transition: all 0.3s;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.2);
}

.drop-zone.dragover {
    border-color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #0f172a;
    border: 1px solid var(--accent-cyan);
    width: 80%;
    height: 80%;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 243, 255, 0.05);
}

.modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
}

.code-editor {
    width: 100%;
    height: 100%;
    background: #050b14;
    color: #a5b4fc;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    border: none;
    padding: 20px;
    resize: none;
}

.code-editor:focus {
    outline: none;
}

/* --- Utilities --- */
.text-cyan { color: var(--accent-cyan); }
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }

.hidden { display: none !important; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}
