/**
 * Home Manager Component Styles
 * Features Glassmorphism and modern dasboard layout
 */

.home-manager-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: none;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-manager-modal.active {
    display: flex;
    opacity: 1;
}

.home-manager-container {
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    background: var(--bg-card, rgba(30, 30, 35, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-manager-modal.active .home-manager-container {
    transform: scale(1);
}

/* Sidebar */
.home-manager-sidebar {
    width: 240px;
    background: rgba(20, 20, 25, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-left: 1rem;
    color: var(--primary, #2563eb);
}

.side-nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.side-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.side-nav-item.active {
    background: var(--primary, #2563eb);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Main Content Area */
.home-manager-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
    position: relative;
}

.manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.manager-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
}

.btn-close-manager {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-close-manager:hover {
    color: white;
}

/* Settings Sections */
.settings-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.settings-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.settings-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.group-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Input Fields */
.input-field {
    margin-bottom: 1rem;
}

.input-field label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.input-field input, .input-field textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: white;
    outline: none;
    transition: border-color 0.2s;
}

.input-field input:focus, .input-field textarea:focus {
    border-color: var(--primary);
}

/* Visibility Checklist */
.visibility-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.visibility-item:last-child {
    border-bottom: none;
}

.visibility-info h4 {
    font-size: 0.95rem;
    font-weight: 500;
}

.visibility-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Theme Grid */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.theme-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0.5rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.theme-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.theme-card.active {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.theme-preview {
    height: 80px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

/* Action Bar */
.action-bar {
    position: sticky;
    bottom: 0;
    background: var(--bg-card);
    padding: 1.5rem 0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-save {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.5);
    transition: transform 0.2s;
}

.btn-save:hover {
    transform: translateY(-2px);
}
