.sequential-analysis-container {
    font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
    background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    color:#333;
    line-height:1.6;
    min-height:100vh;
    padding:20px;
}

.sequential-analysis-header {
    text-align:center;
    padding:40px 20px;
    background:rgba(255,255,255,0.9);
    border-radius:15px;
    box-shadow:0 10px 30px rgba(0,0,0,0.2);
    margin-bottom:30px;
    position:relative;
    overflow:hidden;
}

.sequential-analysis-header::before {
    content:'';
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:5px;
    background:linear-gradient(90deg,#667eea,#764ba2,#f093fb,#f5576c);
    animation:gradientShift 3s linear infinite;
}

@keyframes gradientShift {
    0% {
    background-position:0% 50%;
}

100% {
    background-position:100% 50%;
}


}

.sequential-analysis-title {
    font-size:2.5rem;
    font-weight:700;
    margin-bottom:15px;
    background:linear-gradient(135deg,#667eea,#764ba2);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
}

.sequential-analysis-description {
    font-size:1.2rem;
    color:#666;
    margin-bottom:20px;
    max-width:800px;
    margin-left:auto;
    margin-right:auto;
}

.keywords-container {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
    margin:20px 0;
}

.keyword-badge {
    display:inline-flex;
    align-items:center;
    background:rgba(102,126,234,0.1);
    color:#667eea;
    padding:8px 15px;
    border-radius:25px;
    font-size:0.9rem;
    font-weight:600;
    border:1px solid rgba(102,126,234,0.3);
    transition:all 0.3s ease;
}

.keyword-badge:hover {
    background:rgba(102,126,234,0.2);
    transform:translateY(-2px);
    box-shadow:0 5px 15px rgba(102,126,234,0.2);
}

.keyword-badge i {
    margin-right:8px;
    font-size:0.9rem;
}

.breadcrumb-navigation {
    background:rgba(255,255,255,0.95);
    padding:15px 20px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    margin-bottom:30px;
}

.breadcrumb {
    display:flex;
    flex-wrap:wrap;
    list-style:none;
    margin:0;
    padding:0;
}

.breadcrumb-item {
    margin-right:10px;
    color:#666;
}

.breadcrumb-item:not(:last-child)::after {
    content:">";
    margin-left:10px;
    color:#999;
}

.breadcrumb-item a {
    text-decoration:none;
    color:#667eea;
    transition:color 0.3s ease;
}

.breadcrumb-item a:hover {
    color:#764ba2;
    text-decoration:underline;
}

.main-content {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
    margin-bottom:30px;
}

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


}

.visualization-panel {
    background:rgba(255,255,255,0.95);
    border-radius:15px;
    padding:30px;
    box-shadow:0 10px 30px rgba(0,0,0,0.15);
    transition:transform 0.3s ease,box-shadow 0.3s ease;
}

.visualization-panel:hover {
    transform:translateY(-5px);
    box-shadow:0 15px 40px rgba(0,0,0,0.2);
}

.panel-title {
    font-size:1.5rem;
    font-weight:700;
    margin-bottom:20px;
    color:#333;
    display:flex;
    align-items:center;
}

.panel-title i {
    margin-right:10px;
    color:#667eea;
}

.circuit-container {
    position:relative;
    min-height:400px;
    background:linear-gradient(135deg,#2c3e50,#34495e);
    border-radius:15px;
    padding:20px;
    margin:20px 0;
    overflow:hidden;
}

.circuit-container::before {
    content:'';
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:radial-gradient(circle at 20% 20%,rgba(102,126,234,0.1) 0%,transparent 50%),radial-gradient(circle at 80% 80%,rgba(118,75,162,0.1) 0%,transparent 50%);
    pointer-events:none;
}

.sequential-circuit {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:30px;
    position:relative;
    z-index:1;
}

.flipflop-container {
    display:flex;
    align-items:center;
    gap:30px;
    background:rgba(255,255,255,0.1);
    padding:25px;
    border-radius:15px;
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,0.2);
    flex-wrap:wrap;
    justify-content:center;
}

.input-section {
    display:flex;
    flex-direction:column;
    gap:15px;
    align-items:center;
}

.input-grid {
    display:grid;
    gap:15px;
    align-items:center;
    grid-template-columns:1fr;
}

.input-group {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
}

.input-label {
    color:#ecf0f1;
    font-weight:700;
    font-size:14px;
    text-transform:uppercase;
    letter-spacing:1px;
}

.binary-input {
    width:50px;
    height:50px;
    background:#e74c3c;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:all 0.4s ease;
    border:3px solid #fff;
    box-shadow:0 4px 15px rgba(0,0,0,0.3);
    font-size:18px;
    font-weight:bold;
    color:white;
}

.binary-input.one {
    background:#27ae60;
    transform:scale(1.1);
    box-shadow:0 0 20px rgba(39,174,96,0.6);
}

.binary-input:hover {
    transform:scale(1.15);
}

.clock-input {
    width:60px;
    height:60px;
    background:#f39c12;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:all 0.4s ease;
    border:4px solid #fff;
    box-shadow:0 4px 15px rgba(0,0,0,0.3);
    font-size:20px;
    font-weight:bold;
    color:white;
    position:relative;
}

.clock-input.pulse {
    background:#e67e22;
    transform:scale(1.2);
    box-shadow:0 0 25px rgba(230,126,34,0.8);
}

.clock-edge {
    position:absolute;
    top:-5px;
    right:-5px;
    background:#9b59b6;
    color:white;
    border-radius:50%;
    width:20px;
    height:20px;
    font-size:10px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.wire {
    height:4px;
    background:#34495e;
    border-radius:2px;
    position:relative;
    transition:all 0.4s ease;
}

.wire.active {
    background:#f39c12;
    box-shadow:0 0 15px #f39c12;
}

.wire.horizontal {
    width:60px;
}

.wire.vertical {
    width:4px;
    height:60px;
}

.flipflop-chip {
    width:160px;
    height:200px;
    background:#ecf0f1;
    border:4px solid #34495e;
    border-radius:15px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    font-size:16px;
    font-weight:bold;
    color:#2c3e50;
    position:relative;
    transition:all 0.4s ease;
    margin:10px;
}

.flipflop-chip.active {
    background:#3498db;
    color:white;
    border-color:#2980b9;
    transform:scale(1.05);
    box-shadow:0 5px 20px rgba(52,152,219,0.4);
}

.chip-label {
    font-size:20px;
    margin-bottom:10px;
}

.chip-type {
    font-size:12px;
    opacity:0.8;
}

.state-indicator {
    position:absolute;
    top:10px;
    right:10px;
    background:#e74c3c;
    color:white;
    border-radius:50%;
    width:30px;
    height:30px;
    font-size:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all 0.3s ease;
}

.state-indicator.high {
    background:#27ae60;
}

.output-section {
    display:flex;
    flex-direction:column;
    gap:15px;
    align-items:center;
}

.output-grid {
    display:grid;
    gap:15px;
    align-items:center;
    grid-template-columns:1fr;
}

.output-led {
    width:55px;
    height:55px;
    border-radius:50%;
    background:#e74c3c;
    border:3px solid #fff;
    box-shadow:0 4px 15px rgba(0,0,0,0.3);
    transition:all 0.4s ease;
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    font-weight:bold;
    color:white;
}

.output-led.active {
    background:#27ae60;
    box-shadow:0 0 25px #27ae60;
    transform:scale(1.1);
}

.output-label {
    color:#ecf0f1;
    font-weight:700;
    font-size:14px;
    text-transform:uppercase;
    letter-spacing:1px;
}

.state-display {
    background:rgba(255,255,255,0.1);
    padding:25px;
    border-radius:15px;
    margin:20px 0;
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,0.2);
}

.state-equation {
    font-family:'Courier New',monospace;
    font-size:20px;
    color:#ecf0f1;
    text-align:center;
    margin-bottom:15px;
}

.state-info {
    display:flex;
    justify-content:center;
    gap:20px;
    margin-top:15px;
    flex-wrap:wrap;
}

.state-item {
    background:rgba(255,255,255,0.1);
    padding:10px 15px;
    border-radius:8px;
    font-family:'Courier New',monospace;
    font-size:16px;
    color:#ecf0f1;
    border:1px solid rgba(255,255,255,0.2);
}

.timing-diagram {
    background:rgba(255,255,255,0.1);
    padding:25px;
    border-radius:15px;
    margin:20px 0;
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,0.2);
    min-height:300px;
}

.timing-canvas {
    width:100%;
    height:250px;
    background:#2c3e50;
    border-radius:10px;
    border:2px solid #34495e;
    position:relative;
    overflow:hidden;
}

.timing-grid {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-image:linear-gradient(to right,rgba(255,255,255,0.1) 1px,transparent 1px),linear-gradient(to bottom,rgba(255,255,255,0.1) 1px,transparent 1px);
    background-size:40px 25px;
}

.timing-signal {
    position:absolute;
    height:20px;
    background:#27ae60;
    transition:all 0.3s ease;
    border-radius:2px;
}

.timing-signal.low {
    background:#e74c3c;
}

.timing-signal.clock {
    background:#f39c12;
}

.timing-labels {
    position:absolute;
    left:10px;
    top:0;
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:space-around;
    color:#ecf0f1;
    font-size:12px;
    font-weight:bold;
}

.controls-panel {
    background:rgba(255,255,255,0.95);
    border-radius:15px;
    padding:30px;
    box-shadow:0 10px 30px rgba(0,0,0,0.15);
    transition:transform 0.3s ease,box-shadow 0.3s ease;
}

.controls-panel:hover {
    transform:translateY(-5px);
    box-shadow:0 15px 40px rgba(0,0,0,0.2);
}

.control-group {
    display:flex;
    gap:15px;
    margin-bottom:20px;
    flex-wrap:wrap;
    justify-content:center;
}

.control-btn {
    padding:12px 24px;
    border:none;
    border-radius:25px;
    cursor:pointer;
    font-weight:600;
    transition:all 0.3s ease;
    text-transform:uppercase;
    letter-spacing:1px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

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

.control-btn.primary {
    background:#3498db;
    color:white;
}

.control-btn.success {
    background:#27ae60;
    color:white;
}

.control-btn.warning {
    background:#f39c12;
    color:white;
}

.control-btn.danger {
    background:#e74c3c;
    color:white;
}

.control-btn.blue {
    background:#3498db;
    color:white;
}

.control-btn:hover {
    transform:translateY(-2px);
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
}

.clock-controls {
    display:flex;
    gap:15px;
    align-items:center;
    justify-content:center;
    margin-top:20px;
    flex-wrap:wrap;
}

.clock-speed-control {
    display:flex;
    align-items:center;
    gap:10px;
}

.clock-slider {
    width:150px;
}

.stats-dashboard {
    background:rgba(255,255,255,0.95);
    border-radius:15px;
    padding:30px;
    box-shadow:0 10px 30px rgba(0,0,0,0.15);
    transition:transform 0.3s ease,box-shadow 0.3s ease;
    grid-column:1 / -1;
}

.stats-dashboard:hover {
    transform:translateY(-5px);
    box-shadow:0 15px 40px rgba(0,0,0,0.2);
}

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

.stat-card {
    background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    color:white;
    padding:25px;
    border-radius:15px;
    text-align:center;
    transition:all 0.3s ease;
}

.stat-card:hover {
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

.stat-value {
    font-size:2.5em;
    font-weight:bold;
    margin-bottom:10px;
}

.stat-label {
    font-size:1em;
    opacity:0.9;
    text-transform:uppercase;
    letter-spacing:1px;
}

.simulation-steps {
    background:rgba(255,255,255,0.95);
    border-radius:15px;
    padding:30px;
    box-shadow:0 10px 30px rgba(0,0,0,0.15);
    transition:transform 0.3s ease,box-shadow 0.3s ease;
    grid-column:1 / -1;
}

.simulation-steps:hover {
    transform:translateY(-5px);
    box-shadow:0 15px 40px rgba(0,0,0,0.2);
}

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

.step-item {
    display:flex;
    align-items:center;
    padding:20px;
    background:rgba(102,126,234,0.05);
    border-radius:10px;
    border-left:4px solid #667eea;
    transition:all 0.3s ease;
}

.step-item:hover {
    background:rgba(102,126,234,0.1);
    transform:translateX(5px);
}

.step-number {
    width:40px;
    height:40px;
    background:#667eea;
    color:white;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    font-size:1.2rem;
    margin-right:20px;
    flex-shrink:0;
}

.step-content {
    flex:1;
}

.step-title {
    font-weight:700;
    font-size:1.2rem;
    margin-bottom:5px;
    color:#333;
}

.step-description {
    color:#666;
    line-height:1.5;
}

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

50% {
    transform:scale(1.1);
}

100% {
    transform:scale(1);
}


}

.pulse {
    animation:pulse 0.6s ease-in-out;
}

@keyframes clock-tick {
    0% {
    transform:scale(1) rotate(0deg);
}

25% {
    transform:scale(1.2) rotate(90deg);
}

50% {
    transform:scale(1.1) rotate(180deg);
}

75% {
    transform:scale(1.2) rotate(270deg);
}

100% {
    transform:scale(1) rotate(360deg);
}


}

.clock-tick {
    animation:clock-tick 0.8s ease-in-out;
}

@keyframes state-change {
    0% {
    background:#e74c3c;
}

50% {
    background:#f39c12;
}

100% {
    background:#27ae60;
}


}

.state-change {
    animation:state-change 0.8s ease-in-out;
}

@keyframes timing-pulse {
    0% {
    opacity:0.3;
}

50% {
    opacity:1;
}

100% {
    opacity:0.3;
}


}

.timing-pulse {
    animation:timing-pulse 1s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
    opacity:0;
    transform:translateY(30px);
}

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


}

.fadeInUp {
    animation:fadeInUp 0.6s ease-out;
}

@media (max-width:768px) {
    .sequential-analysis-title {
    font-size:2rem;
}

.sequential-analysis-description {
    font-size:1rem;
}

.main-content {
    gap:20px;
}

.visualization-panel,.controls-panel,.stats-dashboard,.simulation-steps {
    padding:20px;
}

.flipflop-container {
    flex-direction:column;
    gap:20px;
}

.control-group {
    flex-direction:column;
    align-items:center;
}

.control-btn {
    width:100%;
    max-width:250px;
}

.stats-grid {
    grid-template-columns:1fr;
}

.step-item {
    flex-direction:column;
    text-align:center;
}

.step-number {
    margin-right:0;
    margin-bottom:15px;
}


}