.directive-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;
}
.directive-header {
    color: #0d6efd;
    border-bottom: 3px solid #0d6efd;
    padding-bottom: 15px;
    margin-bottom: 25px;
    position: relative;
}
.directive-header::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: #198754;
}
.directive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}
.directive-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.directive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.directive-type {
    padding: 12px 15px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
}
.directive-type i {
    margin-right: 10px;
    font-size: 1.2rem;
}
.structural { background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); }
.attribute { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.custom { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.directive-body {
    padding: 20px;
    background: white;
}
.directive-example {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    overflow-x: auto;
    margin: 15px 0;
    position: relative;
}
.example-output {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}
.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;
}
.directive-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}
@media (max-width: 768px) {
    .directive-comparison {
        grid-template-columns: 1fr;
    }
}
.comparison-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}
.comparison-header {
    background: #495057;
    color: white;
    padding: 12px 15px;
    font-weight: 600;
}
.comparison-body {
    padding: 20px;
    background: white;
}
.directive-table th {
    background: #f8f9fa;
    font-weight: 600;
}
.directive-flow {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}
.flow-step {
    display: flex;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
}
.step-number {
    width: 40px;
    height: 40px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}
.directive-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: 2rem;
    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);
}
.structural-box { background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); }
.attribute-box { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.component-box { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
