:root {
    --primary-color: #00C853;
    --secondary-color: #009624;
    --background-color: #f8fafc;
    --sidebar-bg: #ffffff;
    --text-color: #1f2937;
    --border-color: #e5e7eb;
}

body {
    font-family: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: var(--background-color);
    color: var(--text-color);
}

#controls {
    padding: 16px 24px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

select, input, button {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

select:hover, input:hover, button:hover {
    border-color: var(--primary-color);
}

select:focus, input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

button:hover {
    background-color: var(--secondary-color);
}

#graph {
    flex: 1;
    width: 100%;
    background-color: var(--background-color);
}

#sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    overflow: auto;
    background: var(--sidebar-bg);
    border-left: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.05);
    padding-top: calc(24px + 64px);
    z-index: 5;
    transition: transform 0.3s ease;
}

#sidebar.collapsed {
    transform: translateX(100%);
}

#sidebar-toggle {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    margin-left: auto;
}

#sidebar-toggle.collapsed {
    transform: rotate(180deg);
}

#sidebar-toggle:hover {
    background: var(--secondary-color);
}

.node-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.node-details-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.node-color-indicator {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.node-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.detail-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--background-color);
    border-radius: 6px;
    font-size: 13px;
}

.detail-label {
    color: #64748b;
    font-weight: 500;
}

.detail-value {
    color: var(--text-color);
    font-weight: 400;
    word-break: break-word;
    max-width: 60%;
    text-align: right;
}

.empty-state {
    color: #64748b;
    text-align: center;
    padding: 24px;
    font-size: 14px;
}

.node text {
    font-size: 15px;
    font-weight: 500;
    fill: var(--text-color);
    transform: translate(14px, 5px);
}

.node circle {
    stroke: white;
    stroke-width: 2px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.link {
    stroke: #cbd5e1;
    stroke-opacity: 0.8;
}

.link.highlighted {
    stroke: var(--primary-color);
    stroke-width: 2.5px;
}

#legend {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

#legend div {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #64748b;
}

#legend span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border-radius: 3px;
}

#search {
    min-width: 200px;
}

.zoom-controls {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: white;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.zoom-controls button {
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.zoom-controls button:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
}

.node-stats {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.stat-badge {
    background: var(--background-color);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
}

.stat-badge .count {
    font-weight: 600;
    color: var(--text-color);
}

select, input[type="number"] {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 80px;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    height: 24px;
}

label {
    color: #64748b;
    font-size: 14px;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 200px;
    padding: 8px 36px 8px 12px;
    background: white url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236B7280'><path d='M4.427 6.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 6H4.604a.25.25 0 00-.177.427z'/></svg>") no-repeat right 12px center/16px;
    cursor: pointer;
}

#node-count {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-color);
}

/* Transitions */
.node circle,
.link,
button,
select,
input {
    transition: all 0.2s ease;
}

/* Firefox scrollbar styles */
select {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 var(--background-color);
}

/* Custom scrollbar styles */
select::-webkit-scrollbar {
    width: 8px;
    background-color: transparent;
}

select::-webkit-scrollbar-track {
    background-color: var(--background-color);
    border-radius: 4px;
}

select::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
    border: 2px solid var(--background-color);
}

select::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* Add these styles for dependencies */
.dependency-list {
    flex-direction: column;
    gap: 8px;
}

.dependency-header {
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
}

.dependency-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dependency-item {
    background: var(--background-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dependency-name {
    color: var(--text-color);
    font-weight: 500;
}

.dependency-item:hover {
    background: #e2e8f0;
} 