/* styles.css - Web version */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    color: #f0f0f0;
    height: 100vh;
    overflow: hidden;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header {
    background-color: #333;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.header h1 {
    margin: 0;
    font-size: 24px;
    color: #4CAF50;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.settings-panel {
    width: 300px;
    background-color: #252525;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
}

.visualization-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

canvas {
    flex: 1;
    background-color: #1a1a1a;
    cursor: default;
}

.visualization-controls {
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    background-color: #252525;
}

.status-bar {
    background-color: #333;
    padding: 5px 20px;
    font-size: 12px;
    color: #ccc;
}

/* Button styles */
.btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s, transform 0.1s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #388E3C;
}

.btn-secondary {
    background-color: #555;
    color: white;
}

.btn-secondary:hover {
    background-color: #666;
}

.btn-success {
    background-color: #FF9800;
    color: white;
}

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

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

.btn-danger:hover {
    background-color: #d32f2f;
}

/* Form controls */
.setting-group {
    margin-bottom: 15px;
}

.setting-group label {
    display: block;
    margin-bottom: 5px;
}

.setting-group input[type="range"] {
    width: 100%;
    margin-bottom: 5px;
}

.setting-group input[type="number"] {
    width: 70px;
    padding: 5px;
    background-color: #333;
    border: 1px solid #555;
    color: white;
    border-radius: 3px;
}

/* Critical areas */
.crit-area {
    background-color: #333;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 3px solid #FF2222;
}

.crit-area-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.crit-area-title {
    font-weight: bold;
    color: #FF2222;
}

.delete-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
}

.delete-btn:hover {
    color: #ff0000;
}

/* Export section */
.export-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.export-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.export-options label {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Background image section */
.background-image-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #444;
}

.image-upload {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.image-upload input[type="file"] {
    display: none;
}

.image-controls {
    margin-top: 10px;
    padding: 10px;
    background-color: #333;
    border-radius: 5px;
}

.image-info {
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

.image-info small {
    display: block;
    margin-bottom: 3px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .settings-panel {
        width: 100%;
        max-height: 40vh;
    }
}
