* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.app-container {
    min-height: 100vh;
    width: 100%;
    margin: 0 auto;
    display: block;
}

/* サイドバー */
.sidebar {
    width: 280px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    transform: translateX(0);
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar.collapsed {
    transform: translateX(-280px);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s;
    display: none;
}

.sidebar-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-menu li {
    margin-bottom: 0.25rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-menu a.active {
    background-color: rgba(255,255,255,0.15);
    color: white;
    border-left-color: white;
}

.sidebar-menu .icon {
    margin-right: 0.75rem;
    font-size: 1.125rem;
}

/* メインコンテンツ */
.main-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}


.main-header {
    background: white;
    padding: 1.5rem 0 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

.header-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.company-link {
    position: absolute;
    top: 0;
    right: 2rem;
    font-size: 0.9rem;
}

.company-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.company-link a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.home-link {
    position: absolute;
    top: 0;
    left: 2rem;
    font-size: 0.9rem;
}

.home-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.home-link a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.main-header h1 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.subtitle {
    color: #666;
    font-size: 0.95rem;
}

.content-wrapper {
    padding: 3rem 4rem;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ウェルカムセクション */
.welcome-section {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.welcome-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.welcome-section > p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: #666;
}

/* 練習タイプカード */
.practice-type-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0 auto 4rem auto;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
    align-items: stretch;
}

.practice-type-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 3px solid transparent;
    flex: 0 1 320px;
    min-width: 320px;
    box-sizing: border-box;
}

/* テストシナリオ内のカードを小さく */
.scenario-cards .practice-type-card {
    padding: 1.5rem;
    flex: 0 1 200px;
    min-width: 200px;
    max-width: 220px;
}

.scenario-cards .practice-type-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.scenario-cards .practice-type-card p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.scenario-cards .practice-type-card .btn-large {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.practice-type-card:hover {
    border-color: #007bff;
}

.practice-type-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.practice-type-card p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.btn-large {
    background: #007bff;
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.btn-large:hover {
    background: #0056b3;
}

/* 機能セクション */
.feature-section {
    margin-bottom: 4rem;
}

/* テストシナリオセクション */
.scenario-section {
    margin-top: 2rem;
    padding-top: 3rem;
    border-top: 2px solid #e0e0e0;
}

.scenario-section h3 {
    color: #444;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* テストシナリオカード */
.scenario-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    margin: 2rem auto 0 auto;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
    align-items: stretch;
    overflow-x: auto;
}

.feature-section h3 {
    color: #444;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.feature-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
    justify-content: center;
    align-items: stretch;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    box-sizing: border-box;
}

.feature-card:hover {
    border-color: #007bff;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* コンテンツセクション */
.section {
    background: white;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.section h3 {
    color: #333;
    margin: 1.5rem 0 1rem;
    font-size: 1.25rem;
}

/* フォーム要素 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ボタン */
.btn, button {
    background: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.btn:hover, button:hover {
    background: #0056b3;
}

.btn:disabled, button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #6c757d;
}

.btn-danger {
    background: #dc3545;
}

.btn-success {
    background: #28a745;
}

/* 結果表示エリア */
.result-area {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 6px;
    min-height: 60px;
}

.result-area.success {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.result-area.error {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

/* テーブル */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background: #667eea;
    color: white;
    font-weight: 600;
}

.data-table tr:nth-child(even) {
    background: #f8f9fa;
}

.data-table tr:hover {
    background: #e3f2fd;
}

/* フィールドセット */
fieldset {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

fieldset legend {
    font-weight: 600;
    color: #667eea;
    padding: 0 0.5rem;
}

fieldset label {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

fieldset input[type="checkbox"],
fieldset input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

/* iframe */
iframe {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    width: 100%;
    min-height: 400px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .main-content {
        padding: 0 15px;
    }

    .main-header {
        padding: 1rem 0 0.8rem 0;
    }

    .main-header h1 {
        font-size: 1.5rem;
    }

    .company-link {
        position: static;
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
    }

    .practice-type-cards {
        flex-direction: column;
        gap: 1.5rem;
    }

    .practice-type-card {
        padding: 2rem 1.5rem;
        flex: none;
        min-width: auto;
    }

    .feature-cards {
        flex-direction: column;
    }

    .feature-card {
        flex: none;
        min-width: auto;
    }

    .scenario-cards {
        flex-wrap: nowrap;
        gap: 1rem;
        overflow-x: auto;
        padding: 0 1rem;
        scroll-snap-type: x mandatory;
    }

    .scenario-cards .practice-type-card {
        flex: 0 0 180px;
        min-width: 180px;
        max-width: 180px;
        padding: 1rem;
        scroll-snap-align: start;
    }

    .scenario-cards .practice-type-card h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .scenario-cards .practice-type-card p {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
    }

    .scenario-cards .practice-type-card .btn-large {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .content-wrapper {
        padding: 2rem 1.5rem;
    }

    .section {
        padding: 1.5rem;
    }
}

/* アニメーション */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 特殊要素 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Elements Page Styles */
.elements-container {
    display: flex;
    min-height: 100vh;
    gap: 0;
}

.elements-sidebar {
    width: 300px;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    padding: 2rem 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.elements-sidebar h3 {
    color: #333;
    margin: 0 0 1.5rem 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.elements-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.elements-nav .nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    color: #666;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.elements-nav .nav-item:hover {
    background: #e3f2fd;
    color: #007bff;
}

.elements-nav .nav-item.active {
    background: #e3f2fd;
    color: #007bff;
    border-left-color: #007bff;
    font-weight: 500;
}

.nav-icon {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.elements-main {
    flex: 1;
    padding: 3rem;
    max-width: calc(100vw - 300px);
    overflow-x: hidden;
}

.element-section {
    display: none;
    max-width: 900px;
    margin: 0 auto;
}

.element-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 2rem;
    color: #333;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.section-description {
    color: #666;
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
    line-height: 1.5;
}

.practice-area {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-container {
    max-width: 600px;
}

/* Checkbox and Radio Button Styles */
.checkbox-group, .radio-group {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkbox-group legend, .radio-group legend {
    font-weight: 600;
    color: #333;
    padding: 0 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-label, .radio-label {
    display: flex;
    align-items: center;
    margin: 0.75rem 0;
    cursor: pointer;
    position: relative;
    padding-left: 2rem;
}

.checkbox-label input, .radio-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark, .radiomark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    border: 2px solid #ddd;
    background: white;
    transition: all 0.2s ease;
}

.checkmark {
    border-radius: 3px;
}

.radiomark {
    border-radius: 50%;
}

.checkbox-label:hover .checkmark, .radio-label:hover .radiomark {
    border-color: #007bff;
}

.checkbox-label input:checked ~ .checkmark {
    background: #007bff;
    border-color: #007bff;
}

.radio-label input:checked ~ .radiomark {
    background: #007bff;
    border-color: #007bff;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.radiomark:after {
    content: "";
    position: absolute;
    display: none;
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

.checkbox-label input:checked ~ .checkmark:after,
.radio-label input:checked ~ .radiomark:after {
    display: block;
}

/* Table Controls */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-box input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

/* Button Groups */
.button-group {
    margin-bottom: 2rem;
}

.button-group h3 {
    color: #555;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.button-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* Button Variants */
.btn-primary { background: #007bff; }
.btn-secondary { background: #6c757d; }
.btn-info { background: #17a2b8; }
.btn-warning { background: #ffc107; color: #212529; }
.btn-success { background: #28a745; }
.btn-danger { background: #dc3545; }

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Link Group */
.link-group {
    margin-bottom: 2rem;
}

.link-item {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.test-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    margin-right: 1rem;
}

.test-link:hover {
    text-decoration: underline;
}

.link-description {
    color: #666;
    font-size: 0.9rem;
}

/* Image Group */
.image-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.image-item {
    text-align: center;
}

.image-item h4 {
    color: #555;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.test-image {
    border: 1px solid #ddd;
    border-radius: 4px;
    max-width: 200px;
    height: 100px;
    object-fit: cover;
}

.test-image.broken {
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Upload Area */
.upload-area {
    max-width: 500px;
}

.file-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed #ddd;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.file-input:hover {
    border-color: #007bff;
}

/* Result Areas */
.result-area {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    min-height: 50px;
    display: none;
}

.result-area.show {
    display: block;
}

.result-area.success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.result-area.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Elements Page Responsive Design */
@media (max-width: 1024px) {
    .elements-sidebar {
        width: 250px;
    }

    .elements-main {
        max-width: calc(100vw - 250px);
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .elements-container {
        flex-direction: column;
    }

    .elements-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 1rem 0;
    }

    .elements-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .elements-nav .nav-item {
        flex: 0 0 auto;
        padding: 0.75rem 1rem;
        border: 1px solid #ddd;
        border-radius: 6px;
        border-left: 3px solid transparent;
        font-size: 0.9rem;
    }

    .elements-nav .nav-item.active {
        border-color: #007bff;
        border-left-color: #007bff;
    }

    .elements-main {
        max-width: 100%;
        padding: 1.5rem;
    }

    .practice-area {
        padding: 1.5rem;
    }

    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        justify-content: center;
    }

    .button-row {
        justify-content: center;
    }

    .image-group {
        justify-content: center;
    }
}

/* Forms Page Styles */
.forms-container {
    display: flex;
    min-height: 100vh;
    gap: 0;
}

.forms-sidebar {
    width: 300px;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    padding: 2rem 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.forms-sidebar h3 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.forms-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1.5rem;
}

.forms-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.forms-nav .nav-item:hover {
    background-color: #e9ecef;
    color: #007bff;
    transform: translateX(2px);
}

.forms-nav .nav-item.active {
    background-color: #e3f2fd;
    color: #007bff;
    border-left-color: #007bff;
    font-weight: 600;
}

.forms-nav .nav-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.forms-main {
    flex: 1;
    padding: 2rem 3rem;
    overflow-x: auto;
    max-width: calc(100vw - 300px);
}

.form-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-section .section-title {
    color: #333;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-section .section-description {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form-section .practice-area {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive Design for Forms */
@media (max-width: 768px) {
    .forms-container {
        flex-direction: column;
    }

    .forms-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 1rem 0;
    }

    .forms-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .forms-nav .nav-item {
        flex: 0 0 auto;
        padding: 0.75rem 1rem;
        border: 1px solid #ddd;
        border-radius: 6px;
        border-left: 3px solid transparent;
        font-size: 0.9rem;
    }

    .forms-nav .nav-item.active {
        border-color: #007bff;
        border-left-color: #007bff;
    }

    .forms-main {
        max-width: 100%;
        padding: 1.5rem;
    }

    .form-section .practice-area {
        padding: 1.5rem;
    }
}

/* Alerts Page Styles */
.alerts-container {
    display: flex;
    min-height: 100vh;
    gap: 0;
}

.alerts-sidebar {
    width: 300px;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    padding: 2rem 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.alerts-sidebar h3 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.alerts-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1.5rem;
}

.alerts-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.alerts-nav .nav-item:hover {
    background-color: #e9ecef;
    color: #007bff;
    transform: translateX(2px);
}

.alerts-nav .nav-item.active {
    background-color: #e3f2fd;
    color: #007bff;
    border-left-color: #007bff;
    font-weight: 600;
}

.alerts-nav .nav-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.alerts-main {
    flex: 1;
    padding: 2rem 3rem;
    overflow-x: auto;
    max-width: calc(100vw - 300px);
}

.alert-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.alert-section.active {
    display: block;
}

.alert-section .section-title {
    color: #333;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.alert-section .section-description {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.alert-section .practice-area {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive Design for Alerts */
@media (max-width: 768px) {
    .alerts-container {
        flex-direction: column;
    }

    .alerts-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 1rem 0;
    }

    .alerts-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .alerts-nav .nav-item {
        flex: 0 0 auto;
        padding: 0.75rem 1rem;
        border: 1px solid #ddd;
        border-radius: 6px;
        border-left: 3px solid transparent;
        font-size: 0.9rem;
    }

    .alerts-nav .nav-item.active {
        border-color: #007bff;
        border-left-color: #007bff;
    }

    .alerts-main {
        max-width: 100%;
        padding: 1.5rem;
    }

    .alert-section .practice-area {
        padding: 1.5rem;
    }
}

/* Frames & Windows Page Styles */
.frames-container {
    display: flex;
    min-height: 100vh;
    gap: 0;
}

.frames-sidebar {
    width: 300px;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    padding: 2rem 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.frames-sidebar h3 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.frames-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1.5rem;
}

.frames-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.frames-nav .nav-item:hover {
    background-color: #e9ecef;
    color: #007bff;
    transform: translateX(2px);
}

.frames-nav .nav-item.active {
    background-color: #e3f2fd;
    color: #007bff;
    border-left-color: #007bff;
    font-weight: 600;
}

.frames-nav .nav-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.frames-main {
    flex: 1;
    padding: 2rem 3rem;
    overflow-x: auto;
    max-width: calc(100vw - 300px);
}

.frame-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.frame-section.active {
    display: block;
}

.frame-section .section-title {
    color: #333;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.frame-section .section-description {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.frame-section .practice-area {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive Design for Frames */
@media (max-width: 768px) {
    .frames-container {
        flex-direction: column;
    }

    .frames-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 1rem 0;
    }

    .frames-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .frames-nav .nav-item {
        flex: 0 0 auto;
        padding: 0.75rem 1rem;
        border: 1px solid #ddd;
        border-radius: 6px;
        border-left: 3px solid transparent;
        font-size: 0.9rem;
    }

    .frames-nav .nav-item.active {
        border-color: #007bff;
        border-left-color: #007bff;
    }

    .frames-main {
        max-width: 100%;
        padding: 1.5rem;
    }

    .frame-section .practice-area {
        padding: 1.5rem;
    }
}

/* Cross-page navigation styles - shared across all pages */
.nav-divider {
    height: 1px;
    background: #dee2e6;
    margin: 1rem 1.5rem;
}

.nav-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 1rem 1.5rem 0.5rem 1.5rem;
}

.cross-page-nav {
    opacity: 0.8;
    font-weight: 400 !important;
}

.cross-page-nav:hover {
    opacity: 1;
}

/* Hierarchical Practice Sidebar */
.practice-container {
    display: flex;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.practice-sidebar {
    width: 280px;
    background: #fff;
    border-right: 1px solid #dee2e6;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    position: static;
    min-height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.practice-nav {
    padding: 0;
}

.nav-group {
    border-bottom: 1px solid #f0f0f0;
}

.nav-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #fafafa;
    cursor: pointer;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
    user-select: none;
}

.nav-group-title:hover {
    background: #e9ecef;
    color: #007bff;
}

.nav-group-title.active {
    background: #007bff;
    color: white;
}

.nav-icon {
    font-size: 1rem;
    margin-right: 0.75rem;
}

.expand-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.nav-group-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
}

.nav-group-items.expanded {
    max-height: 500px;
}

.nav-group-items .nav-item {
    display: block;
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    color: #6c757d;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-group-items .nav-item:hover {
    background: #f8f9fa;
    color: #007bff;
    padding-left: 3.2rem;
}

.nav-group-items .nav-item.active {
    background: #e7f1ff;
    color: #007bff;
    font-weight: 500;
    border-left: 3px solid #007bff;
}

.practice-main {
    flex: 1;
    padding: 2rem;
    background-color: #fff;
}

#content-area {
    max-width: 1200px;
    margin: 0 auto;
}

/* Content Section Styling */
.content-section {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.section-description {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.practice-area {
    margin-top: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .practice-sidebar {
        width: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .practice-sidebar.open {
        transform: translateX(0);
    }

    .practice-main {
        margin-left: 0;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 200;
        background: #007bff;
        color: white;
        border: none;
        border-radius: 4px;
        padding: 0.5rem;
        cursor: pointer;
    }
}

/* Alert and Result Styling */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 6px;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-primary {
    background-color: #cce5ff;
    border-color: #99d6ff;
    color: #004085;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0;
}

.result-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.result-table td:first-child {
    width: 30%;
    font-weight: 500;
}

/* Button variations */
.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
    background-color: transparent;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
    background-color: transparent;
}

.btn-outline-secondary:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
    background-color: transparent;
}

.btn-outline-danger:hover {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}
/* Compact Form Styles */
.compact-form .form-group {
    margin-bottom: 1rem;
}

.compact-form .form-row {
    margin-bottom: 1rem;
}

/* Compact Checkbox and Radio Groups */
.checkbox-group.compact,
.radio-group.compact {
    border: none;
    padding: 0;
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-group.compact .custom-checkbox,
.radio-group.compact .custom-radio {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.checkbox-group.compact legend,
.radio-group.compact legend {
    margin-bottom: 0.5rem;
}

/* More compact spacing for form elements */
.compact-form input,
.compact-form select,
.compact-form textarea {
    margin-bottom: 0;
}

.compact-form label {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* Widget Styles */

/* Accordion Styles */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 0;
}

.accordion-item:first-child {
    border-radius: 6px 6px 0 0;
}

.accordion-item:last-child {
    border-bottom: 1px solid #ddd;
    border-radius: 0 0 6px 6px;
}

.accordion-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.accordion-icon {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid #eee;
}

.accordion-body {
    padding: 1.5rem;
    background: white;
}

/* Date Picker Styles */
.date-picker {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* Tabs Styles */
.tabs-container {
    max-width: 800px;
    margin: 0 auto;
}

.tab-list {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 0;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.tab-button:hover {
    color: #495057;
    background: #f8f9fa;
}

.tab-button.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background: white;
}

.tab-panels {
    background: white;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 6px 6px;
}

.tab-panel {
    display: none;
    padding: 2rem;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    color: #333;
    margin-bottom: 1rem;
}

.info-list ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

/* Tooltip Styles */
.tooltip-demo-container {
    max-width: 800px;
    margin: 0 auto;
}

.tooltip-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.tooltip-items, .tooltip-positions, .interactive-elements, .custom-tooltips {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.tooltip-trigger {
    position: relative;
}

.text-link {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

.info-box {
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    min-width: 150px;
    text-align: center;
}

.form-input, .form-select, .form-textarea {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
}

.form-textarea {
    resize: vertical;
    height: 80px;
}

.warning-item, .success-item, .error-item {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.warning-item { background: #fff3cd; border: 1px solid #ffeaa7; }
.success-item { background: #d4edda; border: 1px solid #c3e6cb; }
.error-item { background: #f8d7da; border: 1px solid #f5c6cb; }

/* Tooltip element */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    max-width: 250px;
    word-wrap: break-word;
}

.tooltip::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 5px solid transparent;
}

.tooltip-top::after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: rgba(0, 0, 0, 0.9);
}

.tooltip-bottom::after {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: rgba(0, 0, 0, 0.9);
}

.tooltip-left::after {
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-left-color: rgba(0, 0, 0, 0.9);
}

.tooltip-right::after {
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border-right-color: rgba(0, 0, 0, 0.9);
}

/* Menu Styles */
.menu-demo-container {
    max-width: 900px;
    margin: 0 auto;
}

.menu-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

/* Horizontal Menu */
.horizontal-menu {
    background: #343a40;
    border-radius: 4px;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.2s;
}

.menu-link:hover {
    background: #495057;
    color: #ffffff;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-link:hover {
    background: #f8f9fa;
    color: #333;
}

.dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 0.5rem 0;
}

.arrow {
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Vertical Menu */
.vertical-menu {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    max-width: 250px;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-item {
    border-bottom: 1px solid #e9ecef;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.sidebar-link:hover {
    background: #e9ecef;
    color: #333;
}

.icon {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.expand-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #ffffff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.expandable.expanded .submenu {
    max-height: 200px;
}

.submenu-link {
    display: block;
    padding: 0.5rem 1rem 0.5rem 3rem;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.submenu-link:hover {
    background: #f8f9fa;
    color: #495057;
}

/* Context Menu */
.context-area {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
    cursor: context-menu;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.context-demo-content {
    margin-top: 1rem;
}

.context-menu {
    position: fixed;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 150px;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

.context-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.context-menu-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.context-menu-item:hover {
    background: #f8f9fa;
    color: #333;
}

.context-divider {
    height: 1px;
    background: #e9ecef;
    margin: 0.25rem 0;
}

/* Select Menu Styles */
.select-demo-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: white;
}

.form-select[multiple] {
    height: 120px;
}

.custom-select-wrapper {
    position: relative;
}

.custom-select {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 0.5rem;
    appearance: none;
    background: white;
}

.select-arrow {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.8rem;
    color: #6c757d;
}

.searchable-select {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-option {
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-option:hover {
    background: #f8f9fa;
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* ======================================
   Browser Windows Styles
   ====================================== */

.browser-windows-container {
    display: grid;
    gap: 1.5rem;
}

.window-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: box-shadow 0.3s ease;
}

.window-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.window-section h3 {
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.window-section p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.window-controls,
.position-controls,
.close-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.window-info-display {
    margin-top: 1rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    min-height: 50px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.info-table td {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    font-size: 0.9rem;
}

.info-table td:first-child {
    background: #f8f9fa;
    font-weight: 500;
    width: 40%;
}

/* ======================================
   Alerts Styles
   ====================================== */

.alerts-container {
    display: grid;
    gap: 1.5rem;
}

.alert-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.alert-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-section h3 {
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.alert-section p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert-section .form-control {
    margin-bottom: 0.5rem;
}

.alert-section .btn {
    margin-top: 0.5rem;
}

/* ======================================
   Frames Styles
   ====================================== */

.frames-container {
    display: grid;
    gap: 2rem;
}

.frame-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.frame-section h3 {
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.frame-section p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.frame-wrapper {
    background: #ffffff;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.frame-wrapper iframe {
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.frame-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.frame-controls .form-control {
    margin: 0;
}

.frame-info-display {
    margin-top: 1rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    min-height: 50px;
}

.frame-tree-display {
    margin-top: 1rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    min-height: 50px;
}

.dynamic-frame-item {
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #ffffff;
}

.communication-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
}

/* ======================================
   Nested Frames Styles
   ====================================== */

.nested-frames-container {
    display: grid;
    gap: 2rem;
}

.frame-tree-display .alert {
    margin: 0;
}

/* ======================================
   Modal Dialog Styles
   ====================================== */

.modal-dialogs-container {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.modal-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.modal-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.modal-section h3 {
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.modal-section p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Modal backdrop and positioning */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 500px;
    pointer-events: none;
}

.modal.show .modal-dialog {
    transform: none;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 0.5;
}

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 1.25rem;
    font-weight: 500;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: calc(0.3rem - 1px);
    border-bottom-left-radius: calc(0.3rem - 1px);
}

.modal-footer > * {
    margin: 0.25rem;
}

.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: #000;
    background: transparent;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.5;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.btn-close:hover {
    color: #000;
    text-decoration: none;
    opacity: 0.75;
}

.btn-close:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    opacity: 1;
}

/* Modal size variants */
.modal-sm {
    max-width: 300px;
}

.modal-lg {
    max-width: 800px;
}

.modal-xl {
    max-width: 1140px;
}

/* Modal responsive behavior */
@media (min-width: 576px) {
    .modal-dialog {
        margin: 1.75rem auto;
    }
}

.body.modal-open {
    overflow: hidden;
}

/* ======================================
   Common Utilities for All Components
   ====================================== */

.d-inline-block {
    display: inline-block !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-space-between {
    justify-content: space-between !important;
}

.justify-content-flex-end {
    justify-content: flex-end !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.text-center {
    text-align: center !important;
}

/* Form elements for modal and alerts */
.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #212529;
    display: block;
}

.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: 0.125rem;
}

.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, 0.25);
    appearance: none;
    color-adjust: exact;
    margin-left: -1.5em;
    float: left;
}

.form-check-input[type="checkbox"] {
    border-radius: 0.25em;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-label {
    color: #212529;
    cursor: pointer;
}

/* Additional button variants */
.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
    background-color: transparent;
}

.btn-outline-secondary:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-warning {
    color: #ffc107;
    border-color: #ffc107;
    background-color: transparent;
}

.btn-outline-warning:hover {
    color: #000;
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
    background-color: transparent;
}

.btn-outline-danger:hover {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

/* ======================================
   Enhanced Web Tables Styles
   ====================================== */

/* Table Container Enhancement */
.table-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 1.5rem 0;
    border: 1px solid #e9ecef;
}

/* Enhanced Table Controls */
.table-controls {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-controls .form-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
}

.table-controls .btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}

.table-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.table-controls .search-input {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 250px;
}

.table-controls .search-input:focus {
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    outline: none;
}

/* Enhanced Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    margin: 0;
    font-size: 0.95rem;
}

.data-table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-weight: 600;
    padding: 1.25rem 1rem;
    text-align: left;
    border: none;
    position: relative;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.data-table tbody .table-row {
    transition: all 0.3s ease;
    border-bottom: 1px solid #e9ecef;
}

.data-table tbody .table-row:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #f1f3ff 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.15);
}

.data-table .table-cell {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.data-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.data-table tbody tr:nth-child(even):hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #f1f3ff 100%);
}

/* Action Buttons in Table */
.actions-cell {
    text-align: center;
    white-space: nowrap;
}

.btn-edit,
.btn-delete {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-edit {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-delete {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    color: white;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #c82333 0%, #dc2f2f 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Enhanced Pagination */
.pagination-controls {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid #e9ecef;
}

.pagination-controls select {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination-controls select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.btn-pagination {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-pagination:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-pagination:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.pagination-info {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Enhanced Modal Styles for User Registration */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.close {
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-group input:invalid {
    border-color: #dc3545;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-radius: 0 0 16px 16px;
    background: #f8f9fa;
}

.modal-footer .btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.modal-footer .btn-secondary {
    background: #6c757d;
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.modal-footer .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

/* Responsive Design for Web Tables */
@media (max-width: 768px) {
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .table-controls .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .table-controls .search-input {
        min-width: auto;
        width: 100%;
    }

    .data-table {
        font-size: 0.85rem;
    }

    .data-table .table-cell {
        padding: 0.75rem 0.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .modal-content {
        margin: 2% auto;
        width: 95%;
    }

    .pagination-controls {
        flex-direction: column;
        text-align: center;
    }
}

/* Enhanced Alert Styles for Table Output */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-secondary {
    background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%);
    color: #383d41;
    border-left: 4px solid #6c757d;
}
