:root {
    --primary-color: #6a46d1;
    --secondary-color: #3a2e82;
    --accent-color: #8b6cde;
    --background-color: #1e1a2a;
    --card-bg-color: #2d253d;
    --text-color: #f0f0f0;
    --border-radius: 10px;
    --process-color: #ffca80;
    --resource-color: #80ffb0;
    --error-color: #ff5252;
    --warning-color: #ffcc00;
    --success-color: #4caf50;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Header Styles */
.app-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.app-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Card Styles */
.card {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.control-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

.card h2 i {
    margin-right: 10px;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--accent-color);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
}

.btn-success:hover {
    background-color: #3d8b40;
}

/* Input Styles */
.input-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.input-group label {
    flex: 0 0 80px;
    margin-right: 10px;
}

input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #ffffff;
    border-radius: var(--border-radius);
    background-color: #f9f9f9;
    color: var(--text-color);
    font-size: 1rem;
    width: 100%;
}

/* Edge Controls */
.edge-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.edge-section {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
}

/* Result Display */
.result-display {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--border-radius);
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    font-weight: 500;
}

/* Visualization Area */
.visualization-area {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    min-height: 400px;
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 100px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.processes-container, .resources-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

/* Process and Resource Elements */
.circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--process-color);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.circle:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.rect {
    width: 120px;
    height: 70px;
    background-color: var(--resource-color);
    color: #333;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rect:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.resource-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.resource-label {
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
}

.dot-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 5px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #333;
    border-radius: 50%;
}

/* Lines and Arrows */
.line {
    position: absolute;
    height: 2px;
    background-color: white;
    z-index: 1;
}

.triangle-marker {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 16px solid white;
    z-index: 2;
}

/* Info Panel */
.info-panel {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.info-panel p {
    margin-bottom: 20px;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.circle-demo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--process-color);
}

.rect-demo {
    width: 40px;
    height: 25px;
    background-color: var(--resource-color);
    border-radius: 4px;
}

.arrow-demo {
    width: 40px;
    height: 2px;
    background-color: white;
    position: relative;
}

.arrow-demo::after {
    content: '';
    position: absolute;
    right: 0;
    top: -7px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 16px solid white;
    transform: rotate(90deg);
}

.request-demo {
    background-color: white;
}

.alloc-demo {
    background-color: #80ffb0;
}

.alloc-demo::after {
    border-bottom-color: #80ffb0;
}

/* Status Colors */
.status-success {
    color: var(--success-color);
}

.status-warning {
    color: var(--warning-color);
}

.status-error {
    color: var(--error-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .control-panel {
        grid-template-columns: 1fr;
    }
    
    .edge-controls {
        flex-direction: column;
    }
    
    .visualization-area {
        padding: 20px;
    }
}


:root {
    --primary-color: #2CA6A4;
    --secondary-color: #208F8C;
    --accent-color: #4CB8B5;
    --background-color: #F8F7F5;
    --card-bg-color: #FFFFFF;
    --text-color: #2D2D2D;
    --border-radius: 10px;
    --process-color: #FFA726;
    --resource-color: #66BB6A;
    --error-color: #E53935;
    --warning-color: #FB8C00;
    --success-color: #43A047;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
}

.app-header {
    background-color: var(--primary-color);
    color: white;
}

.card {
    background-color: var(--card-bg-color);
    color: var(--text-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.visualization-area {
    background-color: var(--card-bg-color);
}


.app-header h1 {
    color:white
}
