/* Types Page Layout */
.types-page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: calc(100vh - 60px);
    padding: 2rem;
    text-align: left;
}

.types-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.types-page .page-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #f0f0f0;
    margin: 0;
}

/* Types List */
.types-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.type-item {
    background: #242424;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s;
    gap: 1rem;
}

.type-icon-display {
    font-size: 1.75rem;
    flex-shrink: 0;
    width: 2.5rem;
    text-align: center;
}

.type-item:hover {
    border-color: #3498db;
}

.type-info {
    flex: 1;
    min-width: 0;
}

.type-name {
    font-weight: 600;
    font-size: 1rem;
    color: #f0f0f0;
}

.type-description {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.25rem;
}

.type-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.type-actions .btn-icon {
    background: #333;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.6rem;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.type-actions .btn-icon:hover {
    background: #444;
}

.types-empty {
    text-align: center;
    color: #888;
    padding: 3rem;
    background: #242424;
    border-radius: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .types-page {
        padding: 1rem;
    }

    .types-page .page-header {
        margin-bottom: 1rem;
    }

    .types-page .page-header h1 {
        font-size: 1.25rem;
    }

    .types-page .page-header .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .type-item {
        padding: 0.75rem 1rem;
    }

    .type-name {
        font-size: 0.9rem;
    }

    .type-actions .btn-icon {
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
    }

    .type-icon-display {
        font-size: 1.5rem;
        width: 2rem;
    }
}

/* Icon Selector */
.icon-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    max-height: 160px;
    overflow-y: auto;
}

.icon-option {
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #242424;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background-color 0.2s;
}

.icon-option:hover {
    background: #333;
    border-color: #555;
}

.icon-option.selected {
    border-color: #3498db;
    background: #2a3f52;
}
