:root {
    --primary: #4a6fa5;
    --secondary: #166088;
    --accent: #4fc1e9;
    --light: #f5f7fa;
    --dark: #2c3e50;
    --success: #48cfad;
    --warning: #ffce54;
    --danger: #ed5565;
    --gray: #aab2bd;
    --light-gray: #e6e9ed;
    font-family: Inter, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1;
    
    --blue-btn: #3e7bfa;
    --blue-btn-hover: #2e6be8;
    --red-btn: #f44b59;
    --red-btn-hover: #e43a48;
    --block-bg: #f2f3f5;
    --block-free: #4bda94;
    --block-index: #ffc840;
    --block-pink: #ff7bad;
    --block-purple: #c278ff;
    --block-blue: #42a5f5;
    --block-green: #66bb6a;
    --block-orange: #ffa726;
    --block-default: #aab2bd;
    --block-primary-index: #ff9800;
    --block-secondary-index: #8bc34a;
    
    --pros-color: #48cfad;
    --cons-color: #ed5565;
}

@supports (font-variation-settings: normal) {
    :root { font-family: InterVariable, sans-serif; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: url('../landing.jpeg') no-repeat center center fixed;
    background-size: cover;
    line-height: 1.6;
    color: #fff;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.35);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    min-height: 100vh;
    position: relative;
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.back-button i {
    margin-right: 8px;
}

.about-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.about-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

nav a {
    margin-left: 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
    margin-top: 30px;
    text-align: center;
}

h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

h2 i {
    color: var(--accent);
}

.description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.algorithm-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.algo-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    color: #fff;
}

.algo-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.algo-btn.active {
    background-color: rgba(0, 224, 255, 0.3);
    border-color: rgba(0, 224, 255, 0.5);
}

.algorithm-description {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.algo-desc {
    display: none;
}

.algo-desc.active {
    display: block;
}

.algo-desc h2 {
    margin-bottom: 10px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.algo-desc p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.pros-cons {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.pros, .cons {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pros h3, .cons h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pros h3 {
    color: var(--pros-color);
}

.cons h3 {
    color: var(--cons-color);
}

.pros ul, .cons ul {
    margin-left: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.pros li, .cons li {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .pros-cons {
        flex-direction: column;
    }
}

.dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.flex-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.flex-container > div {
    flex: 1;
    min-width: 300px;
}

.card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.card h2 {
    margin-bottom: 18px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 12px;
    font-size: 1.3rem;
    letter-spacing: 0.01em;
}

.disk-visual {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    margin-bottom: 15px;
    padding: 5px;
}

.block {
    height: 45px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    background-color: var(--block-default);
    position: relative;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.block:hover {
    transform: scale(1.05);
    z-index: 1;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.block.free {
    background-color: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.8);
}

.block.allocated-1 {
    background-color: var(--block-pink);
    color: #fff;
}

.block.allocated-2 {
    background-color: var(--block-purple);
    color: #fff;
}

.block.allocated-3 {
    background-color: var(--block-blue);
    color: #fff;
}

.block.allocated-4 {
    background-color: var(--block-green);
    color: #fff;
}

.block.allocated-5 {
    background-color: var(--block-orange);
    color: #333;
}

.block.index {
    background-color: var(--block-index);
    color: #333;
}

.block.primary-index {
    background-color: var(--block-primary-index);
    color: #333;
}

.block.secondary-index {
    background-color: var(--block-secondary-index);
    color: #333;
}

.block.extent-1 {
    background-color: #ff7043;
    color: #fff;
}

.block.extent-2 {
    background-color: #66bb6a;
    color: #fff;
}

.disk-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 10px 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.disk-info i {
    margin-right: 6px;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    padding: 3px 6px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
}

.legend-color.index {
    background-color: var(--block-index);
}

.legend-color.primary-index {
    background-color: var(--block-primary-index);
}

.legend-color.secondary-index {
    background-color: var(--block-secondary-index);
}

.legend-color.free {
    background-color: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.4);
}

.legend-color.allocated-1 {
    background-color: var(--block-pink);
}

.legend-color.allocated-2 {
    background-color: var(--block-purple);
}

.legend-color.allocated-3 {
    background-color: var(--block-blue);
}

.legend-color.extent-1 {
    background-color: #ff7043;
}

.legend-color.extent-2 {
    background-color: #66bb6a;
}

.legend-item.data {
    margin-right: 5px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #d0d0d0;
}

.input-group input[type="number"],
.input-group input[type="text"] {
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
    margin-bottom: 8px;
    width: 100%;
    transition: all 0.3s ease;
}

.input-group input[type="number"]:focus,
.input-group input[type="text"]:focus {
    border-color: var(--blue-btn);
    outline: none;
    box-shadow: 0 0 0 2px rgba(62, 123, 250, 0.25);
    background-color: rgba(255, 255, 255, 0.12);
}

.input-group input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    margin-top: 5px;
}

.input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--blue-btn);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.input-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--blue-btn);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.primary-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background-color: var(--blue-btn);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.primary-btn:hover {
    background-color: var(--blue-btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.secondary-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button-group {
    display: flex;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 15px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.file-list {
    max-height: 400px;
    overflow-y: auto;
}

.file-list::-webkit-scrollbar {
    width: 8px;
}

.file-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.file-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.file-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.file-entry {
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.file-entry:last-child {
    margin-bottom: 0;
}

.file-entry:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.file-title {
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 1.05rem;
}

.file-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.file-info {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.file-info p {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.file-info i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.blocks-list {
    margin-top: 8px;
    font-family: monospace;
    font-size: 0.95rem;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.blocks-list .extent-1 {
    color: var(--block-pink);
    font-weight: 500;
}

.blocks-list .extent-2 {
    color: var(--block-purple);
    font-weight: 500;
}

.blocks-list .extent-3 {
    color: var(--block-blue);
    font-weight: 500;
}

.file-indicator {
    display: inline-block;
    margin-right: 4px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: rgba(0, 0, 0, 0.8);
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 70%;
    max-width: 800px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
}

.close:hover {
    color: #fff;
}

.modal h2 {
    margin-bottom: 15px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.modal p {
    margin-bottom: 15px;
    color: #d0d0d0;
}

.modal ul {
    margin-left: 20px;
    margin-bottom: 15px;
    color: #d0d0d0;
}

.modal li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .algorithm-selector {
        flex-direction: column;
    }
    
    .flex-container {
        flex-direction: column;
    }
    
    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
}

.delete-btn {
    background-color: var(--red-btn);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.delete-btn:hover {
    background-color: var(--red-btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
} 