/* Building Visualizer Styles - Grayscale Theme */
.bv-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.bv-header {
    text-align: center;
    margin-bottom: 30px;
}

.bv-header h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
    color: #2a2a2a;
}

.bv-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

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

.bv-controls {
    flex: 0 0 300px;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

.bv-preview {
    flex: 1;
    min-width: 600px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

.bv-section {
    margin-bottom: 30px;
}

.bv-section:last-child {
    margin-bottom: 0;
}

.bv-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #2a2a2a;
    border-bottom: 2px solid #555;
    padding-bottom: 8px;
}

.bv-control-group {
    margin-bottom: 15px;
}

.bv-control-group:last-child {
    margin-bottom: 0;
}

.bv-control-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2a2a2a;
    font-size: 14px;
}

.bv-control-group input[type="number"],
.bv-control-group input[type="range"],
.bv-control-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: #fff;
}

.bv-control-group input[type="range"] {
    padding: 0;
    height: 30px;
}

.bv-control-group input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.bv-control-group input[type="number"]:focus,
.bv-control-group input[type="range"]:focus,
.bv-control-group select:focus {
    outline: none;
    border-color: #555;
    box-shadow: 0 0 0 1px #555;
}

.bv-control-group span {
    display: inline-block;
    margin-left: 10px;
    font-weight: bold;
    color: #2a2a2a;
}

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

.bv-button-group .bv-button {
    width: auto;
    flex: 1;
}

.bv-button {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    color: #2a2a2a;
}

.bv-button:hover {
    background: #e8e8e8;
    border-color: #999;
    transform: translateY(-1px);
}

.bv-button:active {
    transform: translateY(0);
}

.bv-button.primary {
    background: #4a4a4a;
    color: #fff;
    border-color: #4a4a4a;
}

.bv-button.primary:hover {
    background: #2a2a2a;
    border-color: #2a2a2a;
    transform: translateY(-1px);
}

.bv-button.primary:active {
    transform: translateY(0);
}

#bv-canvas {
    width: 100%;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: #f8f8f8;
    margin-bottom: 20px;
}

.bv-view-controls {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.bv-view-controls h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #2a2a2a;
    border-bottom: 2px solid #555;
    padding-bottom: 8px;
}

.bv-control-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.bv-control-row:last-child {
    margin-bottom: 0;
}

.bv-control-row .bv-control-group {
    flex: 1;
    margin-bottom: 0;
}

.bv-info {
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
    border-left: 4px solid #555;
    border: 1px solid #ddd;
}

.bv-info-item {
    margin-bottom: 8px;
    font-size: 14px;
}

.bv-info-item:last-child {
    margin-bottom: 0;
}

.bv-info-item strong {
    color: #2a2a2a;
    margin-right: 8px;
}

.bv-info-item span {
    color: #555;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .bv-container {
        flex-direction: column;
    }
    
    .bv-controls {
        flex: 1;
        max-width: 100%;
    }
    
    .bv-preview {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .bv-wrap {
        padding: 10px;
    }
    
    .bv-header h2 {
        font-size: 24px;
    }
    
    #bv-canvas {
        width: 100%;
        height: auto;
    }
}

/* Admin Styles */
.bv-admin-wrap {
    max-width: 1200px;
}

.bv-admin-wrap .widefat {
    margin-bottom: 20px;
}

.bv-admin-wrap h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}
