/* User Profile Layout Styles */

.profile-layout {
    display: flex;
    gap: 2rem;
    padding: 6rem 2rem 2rem 2rem; /* Account for navbar */
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Sidebar Navigation */
.profile-sidebar {
    width: 300px;
    flex-shrink: 0;
    padding: 2rem 0;
    height: fit-content;
    border-radius: 16px;
}

.sidebar-user-info {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.avatar-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-nav-item {
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    border-left: 3px solid transparent;
}

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

.profile-nav-item.active {
    background: rgba(0, 243, 255, 0.1);
    color: #00f3ff;
    border-left: 3px solid #00f3ff;
}

/* Main Content Area */
.profile-content {
    flex-grow: 1;
    padding: 2rem;
    border-radius: 16px;
    position: relative;
    max-width: 900px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10;
}

/* Tabs */
.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease forwards;
}

.tab-pane.active {
    display: block;
}

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

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

.input-glow {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.input-glow:focus {
    outline: none;
    border-color: #00f3ff;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.input-glow.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

/* Toggles & Switches */
.toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #00f3ff;
}

input:focus + .slider {
    box-shadow: 0 0 1px #00f3ff;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Integrations Grid */
.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.integration-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.integration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.status-badge.connected {
    background: rgba(0, 243, 255, 0.1);
    color: #00f3ff;
    border: 1px solid rgba(0, 243, 255, 0.3);
}

/* Sortable List */
.sortable-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sortable-list li {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: grab;
    transition: all 0.2s ease;
}

.sortable-list li:active {
    cursor: grabbing;
}

.sortable-list li.dragging {
    opacity: 0.5;
    border-color: #00f3ff;
}

.drag-handle {
    color: rgba(255, 255, 255, 0.3);
    cursor: grab;
}

/* Range Slider */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00f3ff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table th {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.badge-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Theme Cards */
.theme-selector {
    display: flex;
    gap: 1rem;
}

.theme-card {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.theme-card.active {
    border-color: #00f3ff;
    background: rgba(0, 243, 255, 0.05);
}

.theme-preview {
    width: 100px;
    height: 60px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-preview {
    background: #0a0a0a;
}

.light-preview {
    background: #f0f0f0;
}
