body {
    font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
    background:linear-gradient(135deg,#f5f7fa 0%,#e4edf5 100%);
    min-height:100vh;
    margin:0;
    color:#333;
}

@keyframes pulse {
    0% {
    transform:scale(1);
}

50% {
    transform:scale(1.05);
}

100% {
    transform:scale(1);
}


}

@keyframes bounce {
    0%,20%,60%,100% {
    transform:translateY(0);
}

40% {
    transform:translateY(-10px);
}

80% {
    transform:translateY(-5px);
}


}

@keyframes highlight {
    0% {
    background-color:#3498db;
}

50% {
    background-color:#f1c40f;
}

100% {
    background-color:#3498db;
}


}

@keyframes fadeIn {
    from {
    opacity:0;
    transform:translateY(20px);
}

to {
    opacity:1;
    transform:translateY(0);
}


}

@keyframes slideInLeft {
    from {
    transform:translateX(-100%);
}

to {
    transform:translateX(0);
}


}

@keyframes rotate {
    from {
    transform:rotate(0deg);
}

to {
    transform:rotate(360deg);
}


}

@keyframes colorShift {
    0% {
    background:linear-gradient(135deg,#3498db,#2980b9);
}

25% {
    background:linear-gradient(135deg,#2980b9,#3498db);
}

50% {
    background:linear-gradient(135deg,#3498db,#2980b9);
}

75% {
    background:linear-gradient(135deg,#2980b9,#3498db);
}

100% {
    background:linear-gradient(135deg,#3498db,#2980b9);
}


}

.header_section {
    background:rgba(255,255,255,0.95);
    backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(0,0,0,0.1);
    padding:12px 0;
    position:sticky;
    top:0;
    z-index:1000;
}

.breadcrumb_container {
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:15px;
}

.breadcrumb_nav {
    display:flex;
    align-items:center;
    gap:8px;
    font-size:14px;
    color:#6c757d;
}

.breadcrumb_nav a {
    color:#3498db;
    text-decoration:none;
    font-weight:500;
    transition:color 0.3s ease;
    display:flex;
    align-items:center;
    gap:5px;
}

.breadcrumb_nav a:hover {
    color:#2980b9;
}

.breadcrumb_nav .separator {
    color:#adb5bd;
    margin:0 5px;
}

.breadcrumb_nav .current {
    color:#495057;
    font-weight:600;
    display:flex;
    align-items:center;
    gap:5px;
}

.page_title {
    font-size:1.5rem;
    font-weight:600;
    color:#2c3e50;
    margin:0;
    display:flex;
    align-items:center;
    gap:10px;
}

.page_title i {
    color:#3498db;
    font-size:1.3rem;
}

.keyword_badge {
    display:inline-flex;
    align-items:center;
    gap:5px;
    background:black;
    color:white;
    padding:5px 12px;
    border-radius:20px;
    font-size:13px;
    font-weight:500;
    margin:5px;
    border:1px solid rgba(52,152,219,0.2);
    transition:all 0.3s ease;
}

.keyword_badge:hover {
    background:gray;
    transform:translateY(-2px);
    box-shadow:0 4px 8px rgba(0,0,0,0.1);
}

.keyword_badge i {
    font-size:12px;
}

.unified_toolbar {
    background:rgba(255,255,255,0.98);
    border:1px solid rgba(0,0,0,0.08);
    border-radius:12px;
    box-shadow:0 4px 20px rgba(0,0,0,0.08);
    margin:20px 0;
    overflow:hidden;
    backdrop-filter:blur(10px);
}

.toolbar_header {
    background:linear-gradient(135deg,#f8f9fa 0%,#e9ecef 100%);
    padding:10px 20px;
    border-bottom:1px solid rgba(0,0,0,0.06);
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:15px;
}

.toolbar_title {
    font-weight:600;
    color:#495057;
    display:flex;
    align-items:center;
    gap:8px;
}

.toolbar_stats {
    display:flex;
    gap:20px;
    font-size:13px;
    color:#6c757d;
}

.stat_item {
    display:flex;
    align-items:center;
    gap:5px;
    font-weight:500;
}

.stat_value {
    background:rgba(52,152,219,0.1);
    color:#3498db;
    padding:2px 8px;
    border-radius:12px;
    font-weight:600;
    min-width:30px;
    text-align:center;
}

.toolbar_content {
    padding:15px 20px;
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    align-items:center;
    justify-content:space-between;
}

.input_section {
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}

.array_input {
    width:100px;
    height:36px;
    border:2px solid #dee2e6;
    border-radius:8px;
    padding:0 12px;
    font-size:14px;
    font-weight:500;
    text-align:center;
    transition:all 0.2s ease;
}

.array_input:focus {
    outline:none;
    border-color:#3498db;
    box-shadow:0 0 0 3px rgba(52,152,219,0.1);
}

.operations_section {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.toolbar_btn {
    height:36px;
    padding:0 16px;
    border:1px solid transparent;
    border-radius:8px;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:6px;
    transition:all 0.2s ease;
    white-space:nowrap;
    min-width:80px;
    justify-content:center;
}

.toolbar_btn:hover {
    transform:translateY(-1px);
    box-shadow:0 4px 12px rgba(0,0,0,0.15);
}

.toolbar_btn:active {
    transform:translateY(0);
}

.toolbar_btn i {
    font-size:14px;
}

.btn_search {
    background:linear-gradient(135deg,#3498db,#2980b9);
    color:white;
    border-color:#3498db;
}

.btn_clear {
    background:linear-gradient(135deg,#6c757d,#495057);
    color:white;
    border-color:#6c757d;
}

.btn_demo {
    background:linear-gradient(135deg,#9b59b6,#8e44ad);
    color:white;
    border-color:#9b59b6;
}

.btn_record {
    background:linear-gradient(135deg,#e74c3c,#c0392b);
    color:white;
    border-color:#e74c3c;
}

.btn_record.recording {
    animation:recordPulse 1.5s infinite;
}

@keyframes recordPulse {
    0%,100% {
    box-shadow:0 0 0 0 rgba(231,76,60,0.7);
}

50% {
    box-shadow:0 0 0 8px rgba(231,76,60,0);
}


}

.control_section {
    display:flex;
    gap:8px;
    align-items:center;
    flex-wrap:wrap;
}

.speed_control {
    display:flex;
    align-items:center;
    gap:8px;
    font-size:13px;
    color:#6c757d;
    font-weight:500;
}

.speed_select {
    height:32px;
    border:1px solid #dee2e6;
    border-radius:6px;
    padding:0 8px;
    font-size:12px;
    background:#fff;
    cursor:pointer;
}

.main_content {
    background:rgba(255,255,255,0.98);
    border-radius:12px;
    box-shadow:0 8px 25px rgba(0,0,0,0.08);
    margin:20px 0;
    overflow:hidden;
    backdrop-filter:blur(10px);
}

.content_grid {
    display:grid;
    grid-template-columns:1fr 350px;
    gap:0;
    min-height:600px;
}

.visualization_panel {
    padding:30px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    background:linear-gradient(135deg,#f8f9fa 0%,#e9ecef 100%);
}

.array_container {
    width:100%;
    max-width:900px;
    min-height:200px;
    padding:30px 20px;
    border:3px dashed #dee2e6;
    border-radius:12px;
    background:rgba(255,255,255,0.8);
    position:relative;
    overflow:hidden;
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    justify-content:center;
    align-items:center;
}

.array_element {
    width:60px;
    height:60px;
    background:linear-gradient(135deg,#3498db,#2980b9);
    color:white;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:600;
    font-size:14px;
    box-shadow:0 4px 12px rgba(52,152,219,0.3);
    transition:all 0.3s ease;
    border:3px solid rgba(255,255,255,0.3);
    cursor:pointer;
    user-select:none;
}

.array_element.highlighted {
    background:linear-gradient(135deg,#f1c40f,#f39c12);
    transform:scale(1.2);
    box-shadow:0 6px 20px rgba(241,196,15,0.4);
    animation:pulse 1s infinite;
}

.array_element.visited {
    background:linear-gradient(135deg,#2ecc71,#27ae60);
    box-shadow:0 4px 12px rgba(46,204,113,0.3);
}

.array_element.current {
    background:linear-gradient(135deg,#e74c3c,#c0392b);
    box-shadow:0 4px 12px rgba(231,76,60,0.3);
    animation:pulse 1s infinite;
}

.array_element.target {
    background:linear-gradient(135deg,#9b59b6,#8e44ad);
    box-shadow:0 4px 12px rgba(155,89,182,0.3);
}

.array_element.found {
    background:linear-gradient(135deg,#2ecc71,#27ae60);
    transform:scale(1.2);
    box-shadow:0 6px 20px rgba(46,204,113,0.4);
    animation:bounce 1s infinite;
}

.graph_container {
    width:100%;
    max-width:900px;
    min-height:500px;
    padding:30px 20px;
    border:3px dashed #dee2e6;
    border-radius:12px;
    background:rgba(255,255,255,0.8);
    position:relative;
    overflow:hidden;
}

.graph_node {
    position:absolute;
    width:50px;
    height:50px;
    background:linear-gradient(135deg,#3498db,#2980b9);
    color:white;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:600;
    font-size:16px;
    box-shadow:0 4px 12px rgba(52,152,219,0.3);
    transition:all 0.3s ease;
    border:3px solid rgba(255,255,255,0.3);
    cursor:pointer;
    user-select:none;
    z-index:10;
    animation:fadeIn 0.3s ease;
}

.graph_node.start_node {
    background:linear-gradient(135deg,#2ecc71,#27ae60);
    border:3px solid #f1c40f;
}

.graph_node.target_node {
    background:linear-gradient(135deg,#9b59b6,#8e44ad);
    border:3px solid #f1c40f;
}

.graph_node.highlighted {
    background:linear-gradient(135deg,#f1c40f,#f39c12);
    transform:scale(1.2);
    box-shadow:0 6px 20px rgba(241,196,15,0.4);
    animation:pulse 1s infinite;
}

.graph_node.visited {
    background:linear-gradient(135deg,#2ecc71,#27ae60);
    box-shadow:0 4px 12px rgba(46,204,113,0.3);
}

.graph_node.current {
    background:linear-gradient(135deg,#e74c3c,#c0392b);
    box-shadow:0 4px 12px rgba(231,76,60,0.3);
    animation:pulse 1s infinite;
}

.graph_node.in_queue {
    background:linear-gradient(135deg,#f39c12,#e67e22);
    box-shadow:0 4px 12px rgba(243,156,18,0.3);
}

.graph_node.in_path {
    background:linear-gradient(135deg,#3498db,#2980b9);
    border:3px solid #f1c40f;
}

.graph_node.found {
    background:linear-gradient(135deg,#2ecc71,#27ae60);
    transform:scale(1.2);
    box-shadow:0 6px 20px rgba(46,204,113,0.4);
    animation:bounce 1s infinite;
}

.graph_edge {
    position:absolute;
    height:3px;
    background:linear-gradient(to right,#495057,#6c757d);
    transform-origin:left center;
    z-index:1;
    transition:all 0.3s ease;
}

.graph_edge.highlighted {
    background:linear-gradient(90deg,#e74c3c,#c0392b);
    height:4px;
    box-shadow:0 2px 8px rgba(231,76,60,0.3);
}

.graph_edge.traversed {
    background:linear-gradient(90deg,#2ecc71,#27ae60);
    height:4px;
    box-shadow:0 2px 8px rgba(46,204,113,0.3);
}

.empty_graph {
    color:#adb5bd;
    font-style:italic;
    text-align:center;
    padding:60px 20px;
    width:100%;
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
}

.queue_visualization {
    width:100%;
    max-width:900px;
    min-height:100px;
    padding:20px;
    border:2px solid #dee2e6;
    border-radius:12px;
    background:rgba(255,255,255,0.8);
    margin:20px 0;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    justify-content:center;
    align-items:center;
}

.queue_element {
    width:40px;
    height:40px;
    background:linear-gradient(135deg,#f39c12,#e67e22);
    color:white;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:600;
    font-size:12px;
    box-shadow:0 2px 8px rgba(243,156,18,0.3);
    transition:all 0.3s ease;
    animation:fadeIn 0.3s ease;
}

.queue_label {
    font-weight:600;
    color:#495057;
    margin-right:10px;
}

.empty_queue {
    color:#adb5bd;
    font-style:italic;
    text-align:center;
    width:100%;
}

.empty_array {
    color:#adb5bd;
    font-style:italic;
    text-align:center;
    padding:60px 20px;
    width:100%;
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
}

.array_info {
    display:flex;
    justify-content:center;
    gap:30px;
    margin-top:20px;
    font-size:14px;
    color:#6c757d;
    font-weight:600;
    flex-wrap:wrap;
}

.info_card {
    background:rgba(255,255,255,0.9);
    padding:10px 15px;
    border-radius:8px;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
    display:flex;
    align-items:center;
    gap:8px;
    border:2px solid #3498db;
}

.info_card i {
    color:#3498db;
    font-size:16px;
}

.log_panel {
    background:#f8f9fa;
    border-left:1px solid #dee2e6;
    display:flex;
    flex-direction:column;
}

.log_header {
    background:#e9ecef;
    padding:15px 20px;
    border-bottom:1px solid #dee2e6;
    font-weight:600;
    color:#495057;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.log_content {
    flex:1;
    padding:15px 20px;
    overflow-y:auto;
    max-height:500px;
    font-family:'Courier New',monospace;
    font-size:13px;
    line-height:1.6;
}

.log_entry {
    padding:5px 0;
    border-bottom:1px solid rgba(0,0,0,0.05);
    color:#495057;
}

.log_entry.success {
    color:#27ae60;
}

.log_entry.error {
    color:#e74c3c;
}

.log_entry.info {
    color:#3498db;
}

.log_entry.warning {
    color:#f39c12;
}

.visualization_timeline {
    width:100%;
    max-width:900px;
    padding:20px;
    border:2px solid #dee2e6;
    border-radius:12px;
    background:rgba(255,255,255,0.8);
    margin:20px 0;
}

.timeline_content {
    max-height:200px;
    overflow-y:auto;
}

.timeline_step {
    display:flex;
    align-items:center;
    padding:10px;
    border-bottom:1px solid #eee;
}

.timeline_step:last-child {
    border-bottom:none;
}

.step_number {
    width:30px;
    height:30px;
    background:#3498db;
    color:white;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    margin-right:15px;
}

.step_content {
    flex:1;
}

.step_action {
    font-weight:600;
    color:#3498db;
}

.step_details {
    font-size:13px;
    color:#6c757d;
    margin-top:3px;
}

.simulation_modes {
    display:flex;
    gap:10px;
    margin:15px 0;
    flex-wrap:wrap;
}

.simulation_mode_btn {
    padding:8px 15px;
    border-radius:20px;
    border:2px solid #3498db;
    background:white;
    color:#3498db;
    font-weight:600;
    cursor:pointer;
    transition:all 0.3s ease;
}

.simulation_mode_btn.active {
    background:#3498db;
    color:white;
}

.simulation_mode_btn:hover {
    transform:translateY(-2px);
    box-shadow:0 4px 8px rgba(0,0,0,0.2);
}

.advanced_controls {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:15px;
    margin:20px 0;
}

.control_group {
    background:rgba(255,255,255,0.9);
    border-radius:10px;
    padding:15px;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

.control_group h5 {
    margin-top:0;
    color:#3498db;
    border-bottom:2px solid #f8f9fa;
    padding-bottom:8px;
}

.array_preset {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:10px;
}

.preset_btn {
    padding:5px 10px;
    border-radius:15px;
    background:#f8f9fa;
    border:1px solid #dee2e6;
    cursor:pointer;
    font-size:12px;
}

.preset_btn:hover {
    background:#e9ecef;
}

.visualization_comparison {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin:20px 0;
}

@media (max-width:768px) {
    .visualization_comparison {
    grid-template-columns:1fr;
}


}

.comparison_panel {
    background:white;
    border-radius:10px;
    padding:15px;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

.performance_chart {
    height:200px;
    background:#f8f9fa;
    border-radius:8px;
    margin:15px 0;
    position:relative;
    overflow:hidden;
}

.chart_bar {
    position:absolute;
    bottom:0;
    width:30px;
    background:#3498db;
    border-radius:4px 4px 0 0;
    transition:height 0.5s ease;
}

.chart_label {
    position:absolute;
    bottom:-25px;
    font-size:12px;
    width:100%;
    text-align:center;
}

.algorithm_comparison {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
    gap:15px;
    margin:20px 0;
}

.algorithm_card {
    background:white;
    border-radius:10px;
    padding:15px;
    text-align:center;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
    border:2px solid transparent;
    transition:all 0.3s ease;
    cursor:pointer;
}

.algorithm_card.active {
    border-color:#3498db;
    transform:translateY(-5px);
    box-shadow:0 8px 20px rgba(0,0,0,0.15);
}

.algorithm_card:hover {
    transform:translateY(-3px);
    box-shadow:0 6px 15px rgba(0,0,0,0.12);
}

.algorithm_card i {
    font-size:24px;
    margin-bottom:10px;
}

.complexity {
    font-weight:700;
    color:#3498db;
    margin:5px 0;
}

.small {
    font-size:12px;
    color:#6c757d;
}

.status_indicator {
    display:inline-block;
    width:10px;
    height:10px;
    border-radius:50%;
    margin-right:5px;
}

.status_ready {
    background:#2ecc71;
}

.status_running {
    background:#f1c40f;
    animation:pulse 1s infinite;
}

.status_complete {
    background:#3498db;
}

.visualization_timeline {
    width:100%;
    max-width:900px;
    padding:20px;
    border:2px solid #dee2e6;
    border-radius:12px;
    background:rgba(255,255,255,0.8);
    margin:20px 0;
}

.timeline_step {
    display:flex;
    align-items:center;
    padding:10px;
    border-bottom:1px solid #eee;
}

.timeline_step:last-child {
    border-bottom:none;
}

.step_number {
    width:30px;
    height:30px;
    background:#3498db;
    color:white;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    margin-right:15px;
}

.step_content {
    flex:1;
}

.step_action {
    font-weight:600;
    color:#3498db;
}

.step_details {
    font-size:13px;
    color:#6c757d;
    margin-top:3px;
}

@media (max-width:992px) {
    .content_grid {
    grid-template-columns:1fr;
}

.log_panel {
    border-left:none;
    border-top:1px solid #dee2e6;
}

.toolbar_content {
    flex-direction:column;
    align-items:stretch;
    gap:15px;
}

.operations_section {
    justify-content:center;
}

.breadcrumb_container {
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
}


}

@media (max-width:768px) {
    .toolbar_btn span {
    display:none;
}

.toolbar_btn {
    min-width:40px;
    padding:0 12px;
}

.toolbar_stats {
    gap:10px;
    font-size:12px;
}

.array_input {
    width:80px;
}

.visualization_panel {
    padding:20px;
}

.array_container {
    padding:20px 15px;
    min-height:300px;
}

.array_element {
    width:50px;
    height:50px;
    font-size:12px;
}

.array_info {
    gap:15px;
}

.info_card {
    padding:8px 12px;
    font-size:12px;
}


}

@media (max-width:576px) {
    .page_title {
    font-size:1.2rem;
}

.toolbar_header {
    padding:8px 15px;
}

.toolbar_content {
    padding:12px 15px;
}

.operations_section {
    gap:4px;
}

.toolbar_btn {
    height:32px;
    font-size:12px;
    min-width:36px;
}

.array_element {
    width:40px;
    height:40px;
    font-size:11px;
}

.array_container {
    min-height:250px;
}


}