body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    font-size: 0.875rem;
}

.navbar {
    background: #0747a6 !important;
    border-bottom: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    min-height: 36px;
}

.navbar .navbar-brand {
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.2rem 0;
    line-height: 1.2;
}

.navbar .form-select {
    font-size: 0.875rem;
    padding: 0.3rem 0.6rem;
    background-color: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
}

.navbar .form-select option {
    background: #ffffff;
    color: #333;
}

.navbar .badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
}

.navbar .btn {
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.navbar .btn:hover {
    background-color: rgba(255,255,255,0.1);
}

.sidebar {
    width: 220px;
    min-height: 100vh;
    transition: all 0.3s;
    background: #f4f5f7;
    box-shadow: 2px 0 4px rgba(0,0,0,0.05);
}

.sidebar.collapsed {
    margin-left: -220px;
}

.sidebar .nav-link {
    color: #42526e;
    padding: 0.45rem 0.75rem;
    border-radius: 0.25rem;
    margin: 0.1rem 0.5rem;
    font-weight: 500;
    transition: all 0.15s;
    font-size: 0.8rem;
    white-space: nowrap;
}

.sidebar h6 {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b778c;
    padding: 0.4rem 0.75rem 0.2rem;
    margin-bottom: 0.15rem;
}

.sidebar .nav-link:hover {
    background: #0052cc;
    color: white;
}

.sidebar .nav-link.active {
    background: #0052cc;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 82, 204, 0.2);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
}

.navbar .container-fluid {
    padding: 0.5rem 0.75rem;
}

.container-fluid {
    padding: 1rem;
}

.card {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: none;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.card-header {
    background: #ffffff;
    border-radius: 0.375rem 0.375rem 0 0 !important;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.repo-row {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.repo-row:hover {
    background: #f8fafc;
}

.repo-row.active {
    background: #e6f2ff;
    border-left: 3px solid #0052cc;
}

.tag-item {
    padding: 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    background: white;
    transition: box-shadow 0.2s;
    font-size: 0.875rem;
}

.tag-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tag-digest {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
}

.btn-primary {
    background: #0052cc;
    border: none;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.btn-primary:hover {
    background: #0747a6;
}

.btn-success {
    background: #059669;
    border: none;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.btn-success:hover {
    background: #047857;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

.form-control, .form-select {
    font-size: 0.875rem;
}

.form-control:focus, .form-select:focus {
    border-color: #0052cc;
    box-shadow: 0 0 0 0.2rem rgba(0, 82, 204, 0.15);
}

.badge {
    padding: 0.35rem 0.6rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.75rem;
}

#alert-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1050;
    min-width: 350px;
}

.alert {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.table {
    border-radius: 0.5rem;
    overflow: hidden;
    font-size: 0.875rem;
}

.table thead {
    background: #0052cc;
    color: white;
}

.table th, .table td {
    padding: 0.75rem;
}

.modal-content {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

h4, h5, h6 {
    font-size: 1rem;
    font-weight: 600;
}

small, .small {
    font-size: 0.8rem;
}

.footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 0.6rem 1rem;
    width: 100%;
    margin-top: auto;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        z-index: 1000;
        background: #f4f5f7;
    }
    
    .sidebar.collapsed {
        margin-left: -220px;
    }
}
