/* Info Sections Styling */

.info-section {
    margin-top: 24px;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.info-section .panel-header {
    background: #2c3e50;
    padding: 16px 20px;
    border-bottom: 1px solid #e1e8ed;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    font-size: 16px;
}

.info-content {
    padding: 24px;
    background: #ffffff;
}

/* Python Notes Grid */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 10px;
}

.note-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.note-item h4 {
    margin: 0 0 12px 0;
    color: #4a5568;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.note-item h4::before {
    content: '▸';
    margin-right: 8px;
    font-size: 14px;
    color: #3498db;
    font-weight: bold;
}

.note-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #4a5568;
}

.note-item code {
    background: #e9ecef;
    color: #2c3e50;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #dee2e6;
}

/* Comparison Table */
.comparison-table {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comparison-category {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 16px;
}

.comparison-category h4 {
    margin: 0 0 16px 0;
    color: #4a5568;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.comparison-category table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.comparison-category th {
    background: #2c3e50;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    border: 1px solid #dee2e6;
}

.comparison-category td {
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: top;
    background: #ffffff;
}

.comparison-category td:first-child {
    background: #f8f9fa;
    width: 45%;
    font-weight: 500;
}

.comparison-category td:last-child {
    background: #ffffff;
    width: 55%;
}

.comparison-category tr:last-child td {
    border-bottom: none;
}

.comparison-category code {
    background: #e9ecef;
    color: #2c3e50;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid #dee2e6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notes-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-category table {
        font-size: 12px;
    }
    
    .comparison-category th,
    .comparison-category td {
        padding: 6px 8px;
    }
    
    .comparison-category td:first-child,
    .comparison-category td:last-child {
        width: auto;
    }
}

/* Enhanced styling with gradients and modern design */
.info-section,
.info-section * {
    color-scheme: light;
}

/* Smooth animations */
.note-item,
.comparison-category {
    transition: all 0.2s ease;
}

.note-item:hover {
    transform: translateY(-2px);
}

/* Ensure consistent styling across browsers */
.info-section .panel-header {
    background: #2c3e50 !important;
    color: #ffffff !important;
}

.info-content {
    background: #ffffff !important;
}

.note-item {
    background: #f8f9fa !important;
}

.comparison-category {
    background: #f8f9fa !important;
}

.comparison-category th {
    background: #2c3e50 !important;
    color: #ffffff !important;
}

.comparison-category td:first-child {
    background: #f8f9fa !important;
}

/* Text colors with better contrast */
.info-section h4 {
    color: #4a5568 !important;
}

.info-section p {
    color: #4a5568 !important;
}

.info-section code {
    background: #e9ecef !important;
    color: #2c3e50 !important;
    border: 1px solid #dee2e6 !important;
}

.comparison-category td {
    color: #4a5568 !important;
}