/* Schema vs Instance Page Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Concept Overview */
.concept-overview {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Enhanced Mobile Responsiveness - Small Phones */
@media (max-width: 480px) {
    body {
        overflow-x: hidden;
    }
    
    .concept-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 0.75rem !important;
        max-width: 100% !important;
    }
    
    .concept-card {
        padding: 1.5rem 1rem !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
    
    .page-title {
        font-size: 1.75rem !important;
        line-height: 1.1 !important;
        padding: 0 0.75rem !important;
    }
    
    .page-subtitle {
        font-size: 1rem !important;
        padding: 0 0.75rem !important;
    }
    
    .page-header {
        padding: 80px 0 50px !important;
    }
    
    /* Ensure no horizontal overflow */
    .container {
        padding: 0 0.75rem !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Fix any wide elements */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Responsive fixes for visualization and tables */
@media (max-width: 480px) {
    .visualization-container {
        padding: 0 0.75rem !important;
        max-width: 100% !important;
    }
    
    .view-panel {
        margin: 0 0 1.5rem 0 !important;
        border-radius: 8px !important;
    }
    
    .table-schema {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .interactive-visualization {
        padding: 60px 0 !important;
    }
    
    .interactive-visualization h2 {
        font-size: 1.75rem !important;
        padding: 0 0.75rem !important;
    }
}

/* Extra Small Phones */
@media (max-width: 375px) {
    .concept-grid {
        padding: 0 0.5rem !important;
        gap: 1rem !important;
    }
    
    .concept-card {
        padding: 1.25rem 0.75rem !important;
    }
    
    .page-title {
        font-size: 1.5rem !important;
    }
    
    .container {
        padding: 0 0.5rem !important;
    }
    
    .visualization-container {
        padding: 0 0.5rem !important;
    }
    
    .interactive-visualization h2 {
        font-size: 1.5rem !important;
        padding: 0 0.5rem !important;
    }
}

.concept-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.concept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    transition: all 0.3s ease;
}

.concept-card.schema-card::before {
    background: linear-gradient(45deg, #43cea2, #185a9d);
}

.concept-card.instance-card::before {
    background: linear-gradient(45deg, #fa709a, #fee140);
}

.concept-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.concept-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: white;
}

.schema-card .concept-icon {
    background: linear-gradient(45deg, #43cea2, #185a9d);
}

.instance-card .concept-icon {
    background: linear-gradient(45deg, #fa709a, #fee140);
}

.concept-card h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.concept-definition {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
}

.concept-features {
    list-style: none;
    padding: 0;
}

.concept-features li {
    padding: 0.5rem 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.concept-features i {
    color: #28a745;
    font-size: 1rem;
}

/* Interactive Visualization */
.interactive-visualization {
    padding: 80px 0;
}

.interactive-visualization h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
}

.visualization-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure all containers are responsive */
.container, .content-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.view-panel {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.panel-header {
    background: linear-gradient(135deg, #43cea2, #185a9d);
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-toggle {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.view-toggle:hover,
.view-toggle.active {
    background: white;
    color: #43cea2;
}

.panel-content {
    padding: 2rem;
}

/* Schema Structure */
.table-schema {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.table-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1.5rem;
    border-bottom: 2px solid #dee2e6;
}

.table-header h4 {
    color: #333;
    margin: 0;
    font-size: 1.3rem;
}

.schema-structure {
    padding: 1rem;
}

.column-def {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.column-def:hover {
    background: linear-gradient(90deg, rgba(67, 206, 162, 0.1), transparent);
    transform: translateX(5px);
}

.column-name {
    font-weight: 600;
    color: #333;
    font-family: 'Courier New', monospace;
}

.column-type {
    color: #185a9d;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.column-constraint {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* Data Table */
.table-instance .table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-controls {
    display: flex;
    gap: 0.5rem;
}

.add-record-btn,
.clear-data-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.add-record-btn {
    background: #28a745;
    color: white;
}

.add-record-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.clear-data-btn {
    background: #dc3545;
    color: white;
}

.clear-data-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.data-table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.data-table th {
    background: linear-gradient(135deg, #43cea2, #185a9d);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.data-table tbody tr {
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: rgba(67, 206, 162, 0.1);
    transform: scale(1.02);
}

.data-table tbody tr.new-record {
    animation: slideIn 0.5s ease-out;
    background: rgba(40, 167, 69, 0.1);
}

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

/* Key Differences */
.key-differences {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.key-differences h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
}

.differences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.difference-item {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.difference-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.difference-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #43cea2, #185a9d);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.difference-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

.comparison {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schema-point,
.instance-point {
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.schema-point {
    background: linear-gradient(90deg, rgba(67, 206, 162, 0.1), transparent);
    border-left-color: #43cea2;
}

.instance-point {
    background: linear-gradient(90deg, rgba(250, 112, 154, 0.1), transparent);
    border-left-color: #fa709a;
}

.schema-point strong,
.instance-point strong {
    color: #333;
}

/* Real-world Examples - Clean & Simple Design */
.real-world-examples {
    padding: 80px 0;
    background: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #718096;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

.analogy-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.analogy-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.clickable-analogy {
    cursor: pointer;
}

.analogy-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.analogy-item.highlighted {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #4299e1;
}

.analogy-header {
    padding: 2rem;
    text-align: center;
}

.construction-header {
    background: linear-gradient(135deg, #f6ad55, #ed8936);
}

.publishing-header {
    background: linear-gradient(135deg, #4299e1, #3182ce);
}

.header-content {
    color: white;
}

.icon-container {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analogy-header i {
    font-size: 1.8rem;
    color: white;
}

.analogy-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: white;
}



@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.analogy-content {
    padding: 1.5rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #4299e1;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    align-self: center;
}

.analogy-schema,
.analogy-instance {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.analogy-schema {
    background: #f0fff4;
    border-color: #68d391;
}

.analogy-instance {
    background: #fef5e7;
    border-color: #f6ad55;
}

.content-header {
    margin-bottom: 0.75rem;
}

.content-header h4 {
    color: #2d3748;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-header i {
    font-size: 0.9rem;
}

.analogy-schema .content-header i {
    color: #38a169;
}

.analogy-instance .content-header i {
    color: #ed8936;
}

.analogy-schema ul,
.analogy-instance ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analogy-schema li,
.analogy-instance li {
    padding: 0.4rem 0;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.analogy-schema li i,
.analogy-instance li i {
    font-size: 0.75rem;
    width: 12px;
}

.analogy-schema li i {
    color: #38a169;
}

.analogy-instance li i {
    color: #ed8936;
}

.analogy-insight {
    background: #fffbf0;
    border: 1px solid #fbd38d;
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.analogy-insight i {
    color: #d69e2e;
    font-size: 0.9rem;
    margin-top: 0.1rem;
}

.analogy-insight span {
    color: #744210;
    font-size: 0.8rem;
    line-height: 1.3;
}

.analogy-summary {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.summary-card {
    background: #2d3748;
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 600px;
    text-align: center;
}

.summary-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.summary-card p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    color: #cbd5e1;
}



@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes constructionPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); background: linear-gradient(135deg, #ff8c42, #ffd700); }
    100% { transform: scale(1); }
}

@keyframes publishingWave {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotateZ(-2deg); }
    50% { transform: translateX(5px) rotateZ(2deg); }
    75% { transform: translateX(-3px) rotateZ(-1deg); }
    100% { transform: translateX(0) rotateZ(0deg); }
}

@keyframes appGlow {
    0% { box-shadow: 0 0 0 0 rgba(168, 230, 207, 0.7); }
    50% { box-shadow: 0 0 0 20px rgba(168, 230, 207, 0); }
    100% { box-shadow: 0 0 0 0 rgba(168, 230, 207, 0); }
}

/* Enhanced Responsive Design */
@media (max-width: 1400px) {
    .analogy-container {
        max-width: 1200px;
        gap: 2rem;
    }
}

@media (max-width: 1200px) {
    .analogy-container {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    .analogy-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 1000px;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .analogy-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .vs-divider {
        width: 50px;
        height: 50px;
        font-size: 1rem;
        align-self: center;
        justify-self: center;
        margin: 1rem auto;
    }
    
    .analogy-content {
        padding: 2rem 1.5rem;
    }
    
    .analogy-header {
        padding: 2rem 1.5rem;
    }
    
    .icon-container {
        width: 70px;
        height: 70px;
    }
    
    .analogy-header i {
        font-size: 2.2rem;
    }
    
    .analogy-header h3 {
        font-size: 1.6rem;
    }
    
    .summary-card {
        margin: 0 1rem;
        padding: 2rem;
    }
    
    .analogy-item:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

@media (max-width: 576px) {
    .real-world-examples {
        padding: 80px 0;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .analogy-container {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }
    
    .analogy-item {
        border-radius: 15px;
    }
    
    .analogy-header {
        padding: 1.8rem 1.2rem;
    }
    
    .analogy-content {
        padding: 1.8rem 1.2rem;
    }
    
    .comparison-grid {
        gap: 1.2rem;
    }
    
    .vs-divider {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
    
    .icon-container {
        width: 60px;
        height: 60px;
    }
    
    .analogy-header i {
        font-size: 2rem;
    }
    
    .analogy-header h3 {
        font-size: 1.4rem;
    }
    
    .content-header h4 {
        font-size: 1.1rem;
    }
    
    .analogy-schema li,
    .analogy-instance li {
        font-size: 0.9rem;
        padding: 0.7rem 0;
    }
    
    .analogy-insight {
        padding: 1.2rem;
        margin-top: 1.5rem;
    }
    
    .summary-card {
        margin: 0 0.5rem;
        padding: 1.5rem;
    }
    
    .summary-card h3 {
        font-size: 1.3rem;
    }
    
    .summary-card p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .real-world-examples {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .analogy-header {
        padding: 1.5rem 1rem;
    }
    
    .analogy-content {
        padding: 1.5rem 1rem;
    }
    
    .vs-divider {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .icon-container {
        width: 55px;
        height: 55px;
    }
    
    .analogy-header i {
        font-size: 1.8rem;
    }
    
    .analogy-header h3 {
        font-size: 1.2rem;
        line-height: 1.3;
    }
}

/* Best Practices */
.best-practices {
    padding: 80px 0;
}

.best-practices h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.practice-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.practice-header {
    padding: 2rem;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.schema-practice .practice-header {
    background: linear-gradient(135deg, #43cea2, #185a9d);
}

.instance-practice .practice-header {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.practice-header i {
    font-size: 2.5rem;
}

.practice-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.practice-list {
    list-style: none;
    padding: 2rem;
    margin: 0;
}

.practice-list li {
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #555;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.practice-list li:hover {
    background: rgba(67, 206, 162, 0.05);
    padding-left: 1rem;
}

.practice-list i {
    color: #28a745;
    font-size: 1rem;
}

/* Page Navigation */
.page-navigation {
    padding: 60px 0;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #43cea2, #185a9d);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.nav-btn.prev {
    margin-right: auto;
}

.nav-btn.next {
    margin-left: auto;
}

/* Schema Editing Styles */
.schema-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.edit-schema-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.edit-schema-btn:hover {
    background: white;
    color: #43cea2;
}

.schema-actions {
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.add-column-btn,
.save-schema-btn,
.cancel-schema-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.add-column-btn {
    background: #28a745;
    color: white;
}

.save-schema-btn {
    background: #007bff;
    color: white;
}

.cancel-schema-btn {
    background: #6c757d;
    color: white;
}

.add-column-btn:hover {
    background: #218838;
}

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

.cancel-schema-btn:hover {
    background: #545b62;
}

.column-def {
    position: relative;
    padding-right: 2rem;
}

.delete-column-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.delete-column-btn:hover {
    background: #c82333;
    transform: translateY(-50%) scale(1.1);
}

.editable[contenteditable="true"] {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 3px;
    padding: 2px 5px;
    outline: none;
}

.editable[contenteditable="true"]:focus {
    background: #fff;
    border-color: #43cea2;
    box-shadow: 0 0 0 2px rgba(67, 206, 162, 0.2);
}

/* Data Table Editing Styles */
.action-cell {
    text-align: center;
    white-space: nowrap;
}

.edit-row-btn,
.delete-row-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    margin: 0 0.2rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.edit-row-btn {
    color: #007bff;
}

.edit-row-btn:hover {
    background: #007bff;
    color: white;
}

.delete-row-btn {
    color: #dc3545;
}

.delete-row-btn:hover {
    background: #dc3545;
    color: white;
}

.editable-cell[contenteditable="true"] {
    background: #fff3cd;
    outline: none;
    border: 1px solid #ffeaa7;
}

.editable-cell[contenteditable="true"]:focus {
    background: #fff;
    border-color: #43cea2;
    box-shadow: inset 0 0 0 2px rgba(67, 206, 162, 0.2);
}

/* Add Record Form */
.add-record-form {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
    animation: slideDown 0.3s ease-out;
}

.add-record-form h4 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row input {
    padding: 0.8rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-row input:focus {
    outline: none;
    border-color: #43cea2;
    box-shadow: 0 0 0 2px rgba(67, 206, 162, 0.2);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.save-record-btn,
.cancel-form-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.save-record-btn {
    background: #28a745;
    color: white;
}

.save-record-btn:hover {
    background: #218838;
}

.cancel-form-btn {
    background: #6c757d;
    color: white;
}

.cancel-form-btn:hover {
    background: #545b62;
}

.add-sample-btn {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.add-sample-btn:hover {
    background: #138496;
    transform: translateY(-2px);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
        line-height: 1.2;
        padding: 0 1rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .concept-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .concept-card {
        padding: 2rem 1.5rem !important;
    }
    
    .page-header {
        padding: 100px 0 60px;
    }
    
    .differences-grid,
    .analogy-container,
    .practices-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .analogy-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-btn {
        justify-content: center;
    }
    
    .column-def {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.8rem;
    }
    
    .schema-controls {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .action-cell {
        font-size: 0.8rem;
    }
    
    .edit-row-btn,
    .delete-row-btn {
        padding: 0.2rem;
        font-size: 0.8rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}