.form-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
}
.form-header {
    color: #0d6efd;
    border-bottom: 3px solid #0d6efd;
    padding-bottom: 15px;
    margin-bottom: 25px;
    position: relative;
}
.form-header::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: #198754;
}
.form-visualization {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-radius: 15px;
    margin: 30px 0;
}
.visual-item {
    display: inline-block;
    margin: 20px;
    text-align: center;
}
.visual-box {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin-bottom: 15px;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}
.visual-box:hover {
    transform: scale(1.1);
}
.control-box { background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); }
.group-box { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.array-box { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}
.form-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.form-type {
    padding: 12px 15px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
}
.form-type i {
    margin-right: 10px;
    font-size: 1.2rem;
}
.basic-form { background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); }
.advanced-form { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.validation-form { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.form-body {
    padding: 20px;
    background: white;
}
.form-example {
    background: #1e1e1e;
    color: #d4d4d4;
    /*padding: 20px;*/
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    overflow-x: auto;
    margin: 15px 0;
    position: relative;
}
.live-demo {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
    border: 1px solid #dee2e6;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.demo-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.form-diagram {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
}
.diagram-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}
.diagram-step {
    text-align: center;
    min-width: 120px;
}
.step-icon {
    width: 60px;
    height: 60px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}
.arrow {
    color: #6c757d;
    font-size: 1.5rem;
}
.validator-table th {
    background: #f8f9fa;
    font-weight: 600;
}
.form-state {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}
.state-box {
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background: white;
    position: relative;
    padding-left: 60px;
}
.state-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dynamic-form {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}
.dynamic-step {
    display: flex;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
}
.dynamic-icon {
    width: 40px;
    height: 40px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}
.preview-form {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}
.error-message {
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
}
.form-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-left: 4px solid #0d6efd;
    z-index: 1000;
    max-width: 300px;
}
