* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #6db33f 0%, #4a8c2a 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.main-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input, .form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #6db33f;
    background: white;
    box-shadow: 0 0 0 3px rgba(109, 179, 63, 0.1);
}

.entity-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
}

.entity-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.fields-container {
    margin-top: 20px;
}

.field-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr 60px;
    gap: 15px;
    align-items: end;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.field-row input, .field-row select {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
}

.validation-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.validation-checkboxes label {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: normal;
    color: #495057;
}

.validation-checkboxes input[type="checkbox"] {
    margin-right: 6px;
    width: auto;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #6db33f;
    color: white;
}

.btn-primary:hover {
    background: #5a9a35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 179, 63, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-danger {
    background: #dc3545;
    color: white;
    padding: 8px 12px;
    font-size: 0.8rem;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-add {
    background: #17a2b8;
    color: white;
    margin-top: 15px;
}

.btn-add:hover {
    background: #138496;
}

.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.spring-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.progress {
    display: none;
    background: #e9ecef;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar {
    background: linear-gradient(90deg, #6db33f, #4a8c2a);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.result {
    display: none;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.result.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.result.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.result h4 {
    margin-bottom: 10px;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .field-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
}

.field-counter {
    background: #6db33f;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}