.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-manage-types {
    padding: 10px 20px;
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-manage-types:hover {
    background: #8e44ad;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

.btn-manage-types:active {
    transform: translateY(0);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.room-title {
    font-weight: 600;
    color: var(--text-main);
    font-size: 15px;
}

.room-type-badge {
    padding: 5px 14px;
    background: var(--accent);
    color: white;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
    cursor: help;
    box-shadow: 0 1px 3px rgba(52, 152, 219, 0.2);
}

.room-type-badge:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.delete-message {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    font-size: 15px;
    line-height: 1.6;
    margin: 20px 0;
}

.delete-room-name {
    font-weight: bold;
    color: var(--danger);
}

.type-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 5px;
}

.type-list::-webkit-scrollbar {
    width: 8px;
}

.type-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.type-list::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.type-list::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.type-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--gray-light);
    border-radius: 8px;
    border: 2px solid var(--gray-border);
    transition: all 0.2s;
    gap: 15px;
}

.type-item:hover {
    border-color: var(--accent);
    background: #f8f9ff;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.type-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.type-item-info h4 {
    margin: 0;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
}

.type-item-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
    min-width: auto;
}

.type-list .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-style: italic;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.actions .btn {
    white-space: nowrap;
}

.note-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.note-empty {
    color: #bdc3c7;
    font-style: italic;
}

#roomModal .modal-content {
    max-width: 700px;
}

#typesModal .modal-content {
    max-width: 650px;
}

#deleteModal .modal-content {
    max-width: 500px;
}

.type-list .loading {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

.capacity-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    color: var(--text-main);
}

.capacity-badge::before {
    content: '👥';
    font-size: 14px;
}

.building-name {
    color: var(--text-main);
    font-weight: 500;
}

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

.type-item {
    animation: slideInRight 0.3s ease;
}

#roomForm input:focus,
#roomForm select:focus,
#roomForm textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

table th {
    position: sticky;
    top: 0;
    background: var(--gray-light);
    z-index: 10;
}

table tbody tr {
    transition: background-color 0.2s;
}

table tbody tr:hover {
    background-color: #f8f9ff;
}

.form-helper {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
    font-style: italic;
}