/* BioCypher Schema Helper - Styles */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #64b5f6;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
}

.section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.info-box {
    padding: 15px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
    margin-bottom: 20px;
}

.info-box.warning {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.info-box.error {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.info-box.success {
    background: #d4edda;
    border-left-color: #28a745;
}

.init-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.init-option {
    flex: 1;
    min-width: 200px;
}

.upload-label {
    display: block;
    cursor: pointer;
}

.upload-button {
    display: inline-block;
    padding: 15px 30px;
    background: #2196f3;
    color: white;
    border-radius: 6px;
    text-align: center;
    transition: background 0.3s;
}

.upload-button:hover {
    background: #1976d2;
}

.button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.button.primary {
    background: #2196f3;
    color: white;
}

.button.primary:hover {
    background: #1976d2;
}

.button.danger {
    background: #dc3545;
    color: white;
}

.button.danger:hover {
    background: #c82333;
}

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

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

.toolbar-left {
    flex: 1;
}

.toolbar-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filename-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s;
}

.tab-button:hover {
    color: #2196f3;
}

.tab-button.active {
    color: #2196f3;
    border-bottom-color: #2196f3;
    font-weight: 600;
}

.tab-pane {
    display: none;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tab-pane.active {
    display: block;
}

#graph-container {
    width: 100%;
    height: 600px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.editor-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.editor-tab {
    padding: 10px 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.editor-tab:hover {
    background: #e0e0e0;
}

.editor-tab.active {
    background: #2196f3;
    color: white;
    border-color: #2196f3;
}

.editor-pane {
    display: none;
}

.editor-pane.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.property-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 10px;
}

.property-item input,
.property-item select {
    flex: 1;
}

.form-control {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

h4 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: #333;
}

h5 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: #555;
}

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-right {
        flex-direction: column;
    }
}
