html {
    box-sizing: border-box;
    overflow: -moz-scrollbars-vertical;
    overflow-y: scroll;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    background: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.component-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.component-header {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 2.5em;
    font-weight: 600;
}

.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.component-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: block; /* Default display */
}

.component-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.component-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    text-align: center;
}

.component-name {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.component-description {
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .component-grid {
        grid-template-columns: 1fr;
    }
    
    .component-container {
        margin: 20px auto;
    }
    
    .component-header {
        font-size: 2em;
        margin-bottom: 30px;
    }
}

#swagger-ui {
  display: none; 
}

#component-list {
  display: block; 
}

.back-button:hover {
  background: #357abd !important;
}

.search-container {
    margin: 0 auto 30px;
    max-width: 600px;
    padding: 0 20px;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: #4990e2;
}

.component-card.hidden {
    display: none;
}
