/* Profile and Settings Page Styles */

.profile-main, .settings-main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Profile Styles */
.profile-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    position: relative;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-upload-btn:hover {
    transform: scale(1.1);
}

.profile-info h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.profile-info p {
    margin: 0 0 1rem 0;
    opacity: 0.9;
}

.profile-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: #f8fafc;
}

.tab-btn.active {
    background: #f8fafc;
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 2rem;
}

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

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    margin-bottom: 1rem;
    color: #374151;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.preference-group {
    margin-bottom: 1.5rem;
}

.preference-group h4 {
    margin-bottom: 1rem;
    color: #374151;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.checkbox-label:hover {
    background: #f8fafc;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

.projects-section {
    padding: 0;
}

.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.projects-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e2e8f0;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.project-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transform: translateY(-2px);
}

.project-thumbnail {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-info h4 {
    margin: 0 0 0.5rem 0;
    color: #374151;
}

.project-info p {
    margin: 0 0 1rem 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #9ca3af;
}

.project-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.action-btn {
    padding: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #e2e8f0;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.achievement-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.achievement-card.earned {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #22c55e;
}

.achievement-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #6b7280;
}

.achievement-card.earned .achievement-icon {
    background: #22c55e;
    color: white;
}

.achievement-info h4 {
    margin: 0 0 0.25rem 0;
    color: #374151;
}

.achievement-info p {
    margin: 0 0 0.25rem 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.achievement-date {
    font-size: 0.75rem;
    color: #22c55e;
    font-weight: 500;
}

.achievement-progress {
    font-size: 0.75rem;
    color: #f59e0b;
    font-weight: 500;
}

/* Settings Styles */
.settings-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    overflow: hidden;
}

.settings-nav {
    background: #f8fafc;
    padding: 1rem 0;
}

.settings-nav-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.settings-nav-btn:hover {
    background: #e2e8f0;
}

.settings-nav-btn.active {
    background: white;
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.settings-content {
    padding: 2rem;
}

.settings-section {
    display: none;
}

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

.settings-section h2 {
    margin: 0 0 2rem 0;
    color: #374151;
}

.setting-group {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.setting-group:last-child {
    border-bottom: none;
}

.setting-group h3 {
    margin: 0 0 1rem 0;
    color: #374151;
}

.theme-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.theme-option {
    text-align: center;
    cursor: pointer;
    position: relative;
}

.theme-preview {
    width: 100%;
    height: 100px;
    border-radius: 0.5rem;
    border: 2px solid #e2e8f0;
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.theme-option input[type="radio"]:checked + .theme-preview,
.theme-option:has(input[type="radio"]:checked) .theme-preview {
    border-color: var(--primary-color);
}

.light-theme {
    background: #ffffff;
}

.light-theme .theme-header {
    height: 20px;
    background: #f8fafc;
}

.light-theme .theme-content {
    padding: 0.5rem;
    display: flex;
    gap: 0.25rem;
}

.light-theme .theme-card {
    flex: 1;
    height: 60px;
    background: #e2e8f0;
    border-radius: 0.25rem;
}

.dark-theme {
    background: #1f2937;
}

.dark-theme .theme-header {
    height: 20px;
    background: #374151;
}

.dark-theme .theme-content {
    padding: 0.5rem;
    display: flex;
    gap: 0.25rem;
}

.dark-theme .theme-card {
    flex: 1;
    height: 60px;
    background: #4b5563;
    border-radius: 0.25rem;
}

.auto-theme {
    background: linear-gradient(45deg, #ffffff 50%, #1f2937 50%);
}

.auto-theme .theme-header {
    height: 20px;
    background: linear-gradient(45deg, #f8fafc 50%, #374151 50%);
}

.auto-theme .theme-content {
    padding: 0.5rem;
    display: flex;
    gap: 0.25rem;
}

.auto-theme .theme-card {
    flex: 1;
    height: 60px;
    background: linear-gradient(45deg, #e2e8f0 50%, #4b5563 50%);
    border-radius: 0.25rem;
}

.color-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.color-setting {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.color-setting label {
    flex: 1;
    font-weight: 500;
}

.color-setting input[type="color"] {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
}

.color-value {
    font-family: monospace;
    font-size: 0.875rem;
    color: #6b7280;
}

.typography-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.typography-setting {
    display: flex;
    flex-direction: column;
}

.typography-setting label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.layout-settings,
.notification-settings,
.email-settings,
.sound-settings,
.privacy-settings,
.sharing-settings,
.workflow-settings,
.ai-settings,
.performance-settings,
.developer-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.setting-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 500;
}

.setting-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.setting-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

input[type="checkbox"]:checked + .setting-toggle {
    background: var(--primary-color);
}

input[type="checkbox"]:checked + .setting-toggle::after {
    transform: translateX(20px);
}

.setting-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.shortcuts-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.shortcut-item kbd {
    background: #e2e8f0;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.875rem;
}

.data-management,
.import-export-settings {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.app-info {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.app-logo {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

.app-info h3 {
    margin: 0 0 0.5rem 0;
    color: #374151;
}

.version {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0 0 1rem 0;
}

.description {
    color: #6b7280;
    margin: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item h4 {
    margin: 0 0 0.5rem 0;
    color: #374151;
}

.info-item p {
    margin: 0;
    color: #6b7280;
}

.links-section h4 {
    margin: 0 0 1rem 0;
    color: #374151;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
}

.info-link:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.system-info h4 {
    margin: 0 0 1rem 0;
    color: #374151;
}

.system-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.system-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-main, .settings-main {
        padding: 1rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .settings-container {
        grid-template-columns: 1fr;
    }
    
    .settings-nav {
        display: flex;
        overflow-x: auto;
        padding: 0;
    }
    
    .settings-nav-btn {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .settings-nav-btn.active {
        border-left: none;
        border-bottom-color: var(--primary-color);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .theme-selector {
        grid-template-columns: 1fr;
    }
    
    .color-settings {
        grid-template-columns: 1fr;
    }
    
    .typography-settings {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
}

