/* Custom styling for User Panel */
.user-panel-container {
    max-width: 800px;
    margin: 0 auto;
    background: transparent;
}

.user-panel-header {
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

.user-panel-header h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.user-panel-nav {
    background: white;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.user-panel-nav .nav-pills > li > a {
    color: #666;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.user-panel-nav .nav-pills > li.active > a,
.user-panel-nav .nav-pills > li.active > a:hover,
.user-panel-nav .nav-pills > li.active > a:focus {
    color: white;
    background-color: #667eea;
}

.user-panel-content .tab-pane {
    background: transparent; /* panels inside have their own background */
}

/* Sections for Profile/Settings */
.panel-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.panel-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.panel-section .form-group label {
    font-weight: 600;
    color: #555;
}

.panel-section .form-control {
    border-radius: 8px;
    height: 45px;
    border: 1px solid #ddd;
    box-shadow: none;
}

.panel-section .form-control:focus {
    border-color: #667eea;
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.toggle-container span {
    font-weight: 600;
    color: #444;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}
.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

/* Skeleton Loading Animation */
.skeleton-box {
    background: #e2e5e7;
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0)
    );
    background-size: 200px 100%;
    background-repeat: no-repeat;
    border-radius: 8px;
    display: inline-block;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider {
    background-color: #667eea;
}
input:checked + .slider:before {
    transform: translateX(22px);
}
.slider.round {
    border-radius: 34px;
}
.slider.round:before {
    border-radius: 50%;
}
