464 lines
7.9 KiB
CSS
464 lines
7.9 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
padding: 20px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.container {
|
|
background: white;
|
|
border-radius: 20px;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
padding: 20px;
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: calc(100vh - 40px);
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 15px;
|
|
padding: 10px 15px;
|
|
background: #f8f9fa;
|
|
border-radius: 10px;
|
|
flex-wrap: wrap;
|
|
gap: 15px;
|
|
}
|
|
|
|
.header-title {
|
|
flex: 1;
|
|
min-width: 200px;
|
|
}
|
|
|
|
h1 {
|
|
color: #333;
|
|
margin-bottom: 2px;
|
|
font-size: 1.4em;
|
|
}
|
|
|
|
.subtitle {
|
|
color: #666;
|
|
font-size: 0.8em;
|
|
margin: 0;
|
|
}
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
|
|
.nav-links a {
|
|
padding: 8px 16px;
|
|
background: #e9ecef;
|
|
color: #495057;
|
|
text-decoration: none;
|
|
border-radius: 8px;
|
|
font-weight: 600;
|
|
transition: all 0.3s;
|
|
display: inline-block;
|
|
font-size: 0.9em;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.nav-links a:hover {
|
|
background: #dee2e6;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.nav-links a.active {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
|
|
}
|
|
|
|
.nav-links a.active:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5);
|
|
}
|
|
|
|
.control-group {
|
|
background: #f8f9fa;
|
|
padding: 15px;
|
|
border-radius: 12px;
|
|
border: 2px solid #e9ecef;
|
|
}
|
|
|
|
.sidebar .control-group {
|
|
padding: 12px;
|
|
}
|
|
|
|
.control-group h3 {
|
|
margin-bottom: 12px;
|
|
color: #495057;
|
|
font-size: 1em;
|
|
border-bottom: 2px solid #dee2e6;
|
|
padding-bottom: 6px;
|
|
}
|
|
|
|
.size-inputs {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.input-wrapper {
|
|
flex: 1;
|
|
}
|
|
|
|
.input-wrapper label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
color: #495057;
|
|
font-weight: 500;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.input-wrapper input {
|
|
width: 100%;
|
|
padding: 10px;
|
|
border: 2px solid #dee2e6;
|
|
border-radius: 8px;
|
|
font-size: 16px;
|
|
transition: border-color 0.3s;
|
|
}
|
|
|
|
.input-wrapper input:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
}
|
|
|
|
.palette {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.cell-type {
|
|
padding: 10px;
|
|
border: 2px solid #dee2e6;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
position: relative;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.cell-type:hover {
|
|
transform: translateX(-3px);
|
|
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.cell-type.active {
|
|
border-color: #667eea;
|
|
border-width: 3px;
|
|
box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
|
|
}
|
|
|
|
.cell-type .code {
|
|
font-size: 0.75em;
|
|
color: #6c757d;
|
|
}
|
|
|
|
.road { background: #f8f9fa; color: #495057; }
|
|
.stone { background: #6c757d; color: white; }
|
|
.snow { background: #e3f2fd; color: #1976d2; }
|
|
.ice { background: #b3e5fc; color: #0277bd; }
|
|
.checkpoint { background: #fff3cd; color: #856404; border-color: #ffc107 !important; }
|
|
.start { background: #d4edda; color: #155724; border-color: #28a745 !important; }
|
|
|
|
.buttons {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.sidebar .buttons {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.sidebar .buttons button {
|
|
width: 100%;
|
|
}
|
|
|
|
button {
|
|
flex: 1;
|
|
padding: 12px 24px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
min-width: 120px;
|
|
}
|
|
|
|
button:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
button:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
}
|
|
|
|
.btn-success {
|
|
background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
|
|
color: #333;
|
|
}
|
|
|
|
.btn-warning {
|
|
background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
|
|
color: #333;
|
|
}
|
|
|
|
.btn-danger {
|
|
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
|
|
color: white;
|
|
}
|
|
|
|
.main-content {
|
|
display: flex;
|
|
gap: 20px;
|
|
margin-top: 15px;
|
|
flex: 1;
|
|
min-height: 600px;
|
|
}
|
|
|
|
.canvas-wrapper {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
background: #f8f9fa;
|
|
overflow: hidden;
|
|
flex: 1;
|
|
position: relative;
|
|
}
|
|
|
|
.sidebar {
|
|
width: 280px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
flex-shrink: 0;
|
|
overflow-y: auto;
|
|
max-height: 100%;
|
|
padding-right: 5px;
|
|
}
|
|
|
|
.sidebar::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
.sidebar::-webkit-scrollbar-track {
|
|
background: #f1f1f1;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.sidebar::-webkit-scrollbar-thumb {
|
|
background: #667eea;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.sidebar::-webkit-scrollbar-thumb:hover {
|
|
background: #555;
|
|
}
|
|
|
|
canvas {
|
|
border: 2px solid #dee2e6;
|
|
border-radius: 8px;
|
|
cursor: crosshair;
|
|
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
}
|
|
|
|
.info {
|
|
margin-top: 15px;
|
|
padding: 12px;
|
|
background: #e7f3ff;
|
|
border-left: 4px solid #2196f3;
|
|
border-radius: 8px;
|
|
color: #0d47a1;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.info strong {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
#fileInput, #mapInput, #solutionInput {
|
|
display: none;
|
|
}
|
|
|
|
.legend {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
gap: 10px;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.sidebar .legend {
|
|
grid-template-columns: 1fr;
|
|
gap: 4px;
|
|
}
|
|
|
|
.legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px;
|
|
background: white;
|
|
border-radius: 6px;
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
.legend-color {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 4px;
|
|
border: 2px solid #dee2e6;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Стили для визуализатора */
|
|
.playback-controls {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.playback-btn {
|
|
padding: 10px 15px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
background: #667eea;
|
|
color: white;
|
|
min-width: auto;
|
|
width: 100%;
|
|
}
|
|
|
|
.playback-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.playback-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
.speed-control {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding: 10px;
|
|
background: white;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.speed-control-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.speed-control input[type="range"] {
|
|
width: 100%;
|
|
}
|
|
|
|
.speed-control input[type="range"]:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.speed-control label {
|
|
font-size: 0.9em;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.speed-control #speedValue {
|
|
font-size: 0.9em;
|
|
font-weight: 600;
|
|
color: #667eea;
|
|
}
|
|
|
|
.step-info {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 10px;
|
|
padding: 12px;
|
|
background: white;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.info-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.info-label {
|
|
font-size: 0.85em;
|
|
color: #6c757d;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.info-value {
|
|
font-size: 1.1em;
|
|
font-weight: 600;
|
|
color: #333;
|
|
}
|
|
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.visualization-panel {
|
|
padding: 15px;
|
|
background: #f8f9fa;
|
|
border-radius: 12px;
|
|
border: 2px solid #dee2e6;
|
|
}
|
|
|
|
.visualization-panel h3 {
|
|
margin-bottom: 10px;
|
|
color: #495057;
|
|
font-size: 1em;
|
|
}
|
|
|