﻿/* Bedaya Profile Page Styles */
.bedaya-profile-page {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

    .bedaya-profile-page::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: radial-gradient(circle at 5% 15%, rgba(102, 126, 234, 0.03) 0%, transparent 25%), radial-gradient(circle at 95% 85%, rgba(118, 75, 162, 0.03) 0%, transparent 25%), repeating-linear-gradient(45deg, rgba(102, 126, 234, 0.01) 0px, rgba(102, 126, 234, 0.01) 1px, transparent 1px, transparent 11px), repeating-linear-gradient(-45deg, rgba(118, 75, 162, 0.01) 0px, rgba(118, 75, 162, 0.01) 1px, transparent 1px, transparent 11px);
        z-index: 0;
        opacity: 0.5;
    }

/* Profile Header */
.bedaya-profile-header {
    padding: 80px 0 40px;
    background: white;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid #e2e8f0;
}

.bedaya-profile-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.bedaya-profile-avatar {
    position: relative;
}

.bedaya-avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e2e8f0;
    transition: transform 0.3s ease;
}

    .bedaya-avatar-image:hover {
        transform: scale(1.05);
    }

.bedaya-avatar-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    border: 2px solid white;
}

.bedaya-profile-info {
    flex: 1;
}

.bedaya-profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.bedaya-profile-email {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0 0 1.5rem 0;
}

.bedaya-profile-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.bedaya-profile-stat {
    text-align: center;
}

.bedaya-stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.bedaya-stat-label {
    display: block;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* Profile Container */
.bedaya-profile-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Profile Navigation */
.bedaya-profile-nav {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 2rem;
}

.bedaya-profile-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

    .bedaya-profile-nav-item:hover {
        background: #f1f5f9;
        color: #667eea;
    }

    .bedaya-profile-nav-item.active {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
    }

    .bedaya-profile-nav-item i {
        width: 20px;
    }

/* Profile Content */
.bedaya-profile-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bedaya-profile-tab {
    display: none;
}

    .bedaya-profile-tab.active {
        display: block;
        animation: bedaya-fadeIn 0.3s ease;
    }

/* Section Title */
.bedaya-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Overview Section */
.bedaya-profile-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.bedaya-overview-section {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
}

.bedaya-overview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

    .bedaya-overview-item:last-child {
        border-bottom: none;
    }

    .bedaya-overview-item label {
        font-weight: 600;
        color: #1e293b;
    }

    .bedaya-overview-item span {
        color: #64748b;
    }

.bedaya-status-active {
    background: #dcfce7;
    color: #16a34a;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Activity List */
.bedaya-activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bedaya-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.bedaya-activity-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    flex-shrink: 0;
}

.bedaya-activity-content {
    flex: 1;
}

    .bedaya-activity-content p {
        margin: 0 0 0.25rem 0;
        color: #1e293b;
        font-weight: 500;
    }

.bedaya-activity-time {
    font-size: 0.85rem;
    color: #64748b;
}

/* Courses List */
.bedaya-courses-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bedaya-course-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.bedaya-course-image img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.bedaya-course-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bedaya-course-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.bedaya-course-instructor {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.bedaya-course-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.bedaya-progress-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.bedaya-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.bedaya-progress-text {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.bedaya-course-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Certificates Grid */
.bedaya-certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.bedaya-certificate-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.bedaya-certificate-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.2rem;
}

.bedaya-certificate-info {
    flex: 1;
}

.bedaya-certificate-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.bedaya-certificate-date {
    font-size: 0.9rem;
    color: #667eea;
    margin: 0 0 0.25rem 0;
}

.bedaya-certificate-course {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.bedaya-certificate-actions {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

/* Settings Form */
.bedaya-settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bedaya-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .bedaya-form-group label {
        font-weight: 600;
        color: #1e293b;
        font-size: 0.9rem;
    }

.bedaya-form-input,
.bedaya-form-textarea {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .bedaya-form-input:focus,
    .bedaya-form-textarea:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.bedaya-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.bedaya-checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #64748b;
}

.bedaya-checkbox-checkmark {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .bedaya-checkbox-checkmark::after {
        content: '';
        position: absolute;
        display: none;
        left: 5px;
        top: 1px;
        width: 6px;
        height: 12px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.bedaya-checkbox-container input:checked ~ .bedaya-checkbox-checkmark {
    background: #667eea;
    border-color: #667eea;
}

    .bedaya-checkbox-container input:checked ~ .bedaya-checkbox-checkmark::after {
        display: block;
    }

/* Progress Section */
.bedaya-progress-overview {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
}

.bedaya-progress-chart {
    flex-shrink: 0;
}

.bedaya-progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.bedaya-progress-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.bedaya-progress-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 8;
}

.bedaya-progress-fill {
    fill: none;
    stroke: linear-gradient(135deg, #667eea, #764ba2);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.bedaya-progress-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.bedaya-progress-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.bedaya-progress-info p {
    color: #64748b;
    margin: 0;
}

.bedaya-progress-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1rem 0;
}

.bedaya-progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.bedaya-progress-stat {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

    .bedaya-progress-stat .bedaya-stat-label {
        font-size: 0.9rem;
        color: #64748b;
        margin-bottom: 0.25rem;
    }

    .bedaya-progress-stat .bedaya-stat-value {
        font-size: 1.5rem;
        font-weight: 700;
        color: #667eea;
    }

/* Buttons */
.bedaya-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.bedaya-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

    .bedaya-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }

.bedaya-btn-ghost {
    background: transparent;
    color: #667eea;
    border: 2px solid #e2e8f0;
}

    .bedaya-btn-ghost:hover {
        background: #f1f5f9;
        border-color: #667eea;
    }

/* Animations */
@keyframes bedaya-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .bedaya-profile-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bedaya-profile-nav {
        position: static;
        margin-bottom: 1rem;
    }

    .bedaya-profile-overview {
        grid-template-columns: 1fr;
    }

    .bedaya-course-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bedaya-course-actions {
        flex-direction: row;
    }

    .bedaya-progress-overview {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .bedaya-profile-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .bedaya-profile-stats {
        justify-content: center;
    }

    .bedaya-profile-container {
        padding: 1rem;
    }

    .bedaya-profile-content {
        padding: 1.5rem;
    }

    .bedaya-certificate-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .bedaya-certificate-actions {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .bedaya-profile-header {
        padding: 40px 0 20px;
    }

    .bedaya-profile-name {
        font-size: 1.5rem;
    }

    .bedaya-profile-stats {
        gap: 1rem;
    }

    .bedaya-profile-nav-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .bedaya-course-item {
        padding: 1rem;
    }

    .bedaya-certificate-item {
        padding: 1rem;
    }

    .bedaya-progress-overview {
        padding: 1rem;
    }

    .bedaya-progress-circle {
        width: 100px;
        height: 100px;
    }
}
