/* Rhön IT Platformguidelines */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9rem;
}

/* Sidebar */
.sidebar {
    width: 260px;
    min-width: 260px;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-link {
    color: #333;
    font-size: 0.88rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}
.sidebar-link:hover, .sidebar-link.active {
    background-color: #e8f5f5;
    color: #007377;
}

.sidebar-sublink {
    color: #666;
    font-size: 0.82rem;
    padding-left: 8px;
}
.sidebar-sublink:hover {
    color: #007377;
}

/* Sections */
.section-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: #007377;
    border-bottom: 2px solid #007377;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.param-label {
    font-weight: 600;
    min-width: 140px;
    color: #333;
}

/* Colors */
.color-swatch {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.15);
    transition: transform 0.15s;
}
.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch-sm {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.15);
    flex-shrink: 0;
    transition: transform 0.15s;
}
.color-swatch-sm:hover {
    transform: scale(1.15);
}

.color-value {
    font-size: 0.85rem;
    color: #555;
}

.color-card {
    transition: box-shadow 0.15s;
}
.color-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fw-mono {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
}

/* Icons */
.icon-card {
    transition: box-shadow 0.15s;
    cursor: default;
}
.icon-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.icon-card:hover .icon-download-overlay {
    opacity: 1;
}

.icon-preview {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.icon-download-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,115,119,0.85);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.2s;
    text-decoration: none;
}

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Input group small */
.input-group-text-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* Aspect lock */
.aspect-lock {
    border-color: #007377;
    color: #007377;
}
.aspect-lock.active {
    background-color: #007377;
    color: white;
}

/* Badge small */
.badge-sm {
    font-size: 0.7rem;
    padding: 2px 5px;
}

/* Search highlight */
.search-hidden {
    display: none !important;
}

/* Mobile */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
        min-width: 200px;
    }
    .param-label {
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 56px;
        bottom: 0;
        z-index: 1050;
        transition: left 0.3s;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    .sidebar.show {
        left: 0;
    }
}
