.app-structure {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid var(--django-green);
}

.app-file-tree {
    list-style-type: none;
    padding-left: 0;
}

.app-file-tree li {
    margin: 0.25rem 0;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.app-file-tree li:hover {
    background-color: #e9ecef;
}

.app-file-tree .folder {
    font-weight: bold;
    color: var(--django-green);
    cursor: pointer;
}

.app-file-tree .file {
    color: #6c757d;
    margin-left: 1.5rem;
}

.app-file-tree .file:before {
    content: "📄 ";
    margin-right: 0.5rem;
}

.app-file-tree .folder:before {
    content: "📁 ";
    margin-right: 0.5rem;
}

.app-purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.app-purpose-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.app-purpose-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--django-light-green);
}

.app-purpose-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--django-green);
}

.workflow-step {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.step-number {
    background-color: var(--django-green);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.file-explanation {
    background-color: #e7f3ff;
    border-left: 4px solid #0d6efd;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 5px 5px 0;
}

.app-registration {
    background-color: #d1ecf1;
    border-left: 4px solid #0dcaf0;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

.mvc-diagram {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
}

.mvc-component {
    display: inline-block;
    margin: 0 1rem;
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 5px;
}

.mvc-arrow {
    font-size: 1.5rem;
    margin: 0 0.5rem;
    color: white;
}

.best-practice-list {
    list-style-type: none;
    padding-left: 0;
}

.best-practice-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #dee2e6;
    position: relative;
    padding-left: 2rem;
}

.best-practice-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--django-light-green);
    font-weight: bold;
}

.app-naming-convention {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 5px 5px 0;
}

.app-example {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid #dee2e6;
}

.interactive-command {
    background-color: #2d2d2d;
    color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    margin: 1rem 0;
    position: relative;
}

.command-feedback {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.file-structure-visual {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.structure-tree {
    text-align: left;
}

.app-lifecycle {
    background-color: #e9ecef;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
}

.lifecycle-step {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 5px;
}

.lifecycle-arrow {
    text-align: center;
    margin: 0.5rem 0;
    color: var(--django-green);
    font-weight: bold;
}
