.model-diagram {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 2rem;
    color: white;
    margin: 2rem 0;
    text-align: center;
}

.model-component {
    display: inline-block;
    margin: 0 1rem;
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 5px;
    min-width: 150px;
}

.field-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.field-type-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.field-type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--django-light-green);
}

.field-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--django-green);
}

.relationship-visual {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.relationship-example {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.relationship-box {
    background: white;
    border: 2px solid var(--django-green);
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem;
    min-width: 200px;
    text-align: center;
}

.relationship-arrow {
    font-size: 1.5rem;
    color: var(--django-green);
    margin: 0 1rem;
}

.model-code-example {
    background-color: #2d2d2d;
    color: #f8f9fa;
    border-radius: 5px;
    padding: 1.5rem;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

.model-comment {
    color: #6a9955;
}

.model-keyword {
    color: #569cd6;
}

.model-class {
    color: #4ec9b0;
}

.model-function {
    color: #dcdcaa;
}

.model-string {
    color: #ce9178;
}

.model-attribute {
    color: #9cdcfe;
}

.migration-flow {
    background-color: #e9ecef;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
}

.flow-step {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 5px;
}

.flow-arrow {
    text-align: center;
    margin: 0.5rem 0;
    color: var(--django-green);
    font-weight: bold;
}

.field-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.field-table th,
.field-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.field-table th {
    background-color: var(--django-light-green);
    color: white;
}

.field-table tr:hover {
    background-color: #f8f9fa;
}

.orm-example {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

.model-meta-options {
    background-color: #d1ecf1;
    border-left: 4px solid #0dcaf0;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

.validation-rules {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 5px 5px 0;
}

.interactive-model {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 5px;
    padding: 2rem;
    margin: 2rem 0;
}

.model-builder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.builder-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.builder-preview {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 1rem;
}

.relationship-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.entity {
    background: white;
    border: 2px solid var(--django-green);
    border-radius: 5px;
    padding: 1rem;
    min-width: 200px;
    text-align: center;
}

.relation-line {
    position: relative;
    flex-grow: 1;
    height: 2px;
    background: var(--django-green);
    max-width: 100px;
}

.relation-line:before {
    content: "";
    position: absolute;
    top: -4px;
    right: 0;
    width: 0;
    height: 0;
    border-left: 8px solid var(--django-green);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.many-relation:before {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--django-green);
    top: -8px;
    right: 50%;
    transform: translateX(50%);
}

.migration-timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: -2rem;
    top: 1.5rem;
    width: 1rem;
    height: 2px;
    background: var(--django-green);
}

.timeline-item:after {
    content: "";
    position: absolute;
    left: -2.5rem;
    top: 1rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--django-green);
}
