/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Segoe UI', sans-serif;
    background-color: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

/* Header Navigation */
.app-header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.app-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-back {
    color: #0071e3;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
}

.nav-title {
    font-size: 17px;
    font-weight: 600;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-settings {
    background-color: transparent;
    color: #0071e3;
    border: none;
    font-size: 17px;
    cursor: pointer;
    font-weight: 400;
}

/* Main Dashboard */
.dashboard-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Profile Section */
.profile-section {
    background-color: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0071e3 0%, #0077ed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.profile-info h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-email {
    color: #8e8e93;
    font-size: 17px;
    margin-bottom: 12px;
}

.profile-badge {
    display: inline-block;
    background-color: #0071e3;
    color: white;
    padding: 6px 16px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
}

/* Stats Section */
.stats-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background-color: white;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: #8e8e93;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-change {
    font-size: 13px;
    color: #8e8e93;
}

.stat-change.positive {
    color: #34c759;
}

/* My Skills Section */
.my-skills-section {
    margin-bottom: 40px;
}

.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-primary {
    background-color: #0071e3;
    color: white;
    border: none;
    border-radius: 980px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #0077ed;
}

/* Skills Table */
.skills-table {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.skill-row {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    gap: 20px;
    transition: background-color 0.2s;
}

.skill-row:last-child {
    border-bottom: none;
}

.skill-row:hover {
    background-color: #f5f5f7;
}

.skill-icon-small {
    font-size: 48px;
    width: 64px;
    height: 64px;
    background-color: #f5f5f7;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-details {
    flex: 1;
    min-width: 0;
}

.skill-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.skill-meta {
    font-size: 14px;
    color: #8e8e93;
}

.skill-stats {
    display: flex;
    gap: 32px;
}

.skill-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 2px;
}

.stat-text {
    font-size: 12px;
    color: #8e8e93;
}

.btn-manage {
    background-color: transparent;
    color: #0071e3;
    border: 1px solid #0071e3;
    border-radius: 980px;
    padding: 8px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-manage:hover {
    background-color: #0071e3;
    color: white;
}

/* Pending Section */
.pending-section {
    margin-bottom: 40px;
}

.pending-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.pending-card {
    background-color: white;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pending-icon {
    font-size: 48px;
    width: 64px;
    height: 64px;
    background-color: #fff3cd;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pending-info h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.pending-status {
    font-size: 14px;
    color: #8e8e93;
}

/* Earnings Section */
.earnings-section {
    margin-bottom: 40px;
}

.earnings-card {
    background-color: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.earnings-period {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    justify-content: center;
}

.period-btn {
    background-color: #f5f5f7;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.period-btn.active {
    background-color: #0071e3;
    color: white;
}

.period-btn:hover:not(.active) {
    background-color: #e8e8ed;
}

.earnings-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    margin-bottom: 24px;
    gap: 16px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, #0071e3, #0077ed);
    border-radius: 8px 8px 0 0;
    position: relative;
    min-height: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: all 0.3s;
}

.chart-bar:hover {
    opacity: 0.8;
}

.chart-label {
    position: absolute;
    bottom: -40px;
    font-size: 12px;
    color: #8e8e93;
    text-align: center;
    white-space: nowrap;
}

.earnings-summary {
    display: flex;
    justify-content: space-around;
    padding-top: 40px;
    border-top: 0.5px solid rgba(0, 0, 0, 0.08);
}

.summary-item {
    text-align: center;
}

.summary-label {
    font-size: 14px;
    color: #8e8e93;
    margin-bottom: 4px;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
}

.summary-value.positive {
    color: #34c759;
}

/* Activity Section */
.activity-section {
    margin-bottom: 40px;
}

.activity-list {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    gap: 16px;
}

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

.activity-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    background-color: #f5f5f7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-info {
    flex: 1;
}

.activity-text {
    font-size: 15px;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 13px;
    color: #8e8e93;
}

.activity-amount {
    font-size: 17px;
    font-weight: 600;
    color: #34c759;
}

/* Footer */
.app-footer {
    background-color: white;
    margin-top: 60px;
    padding: 40px 20px;
    border-top: 0.5px solid rgba(0, 0, 0, 0.08);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    color: #0071e3;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copyright {
    font-size: 12px;
    color: #8e8e93;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skill-stats {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .pending-cards {
        grid-template-columns: 1fr;
    }

    .skill-row {
        flex-wrap: wrap;
    }

    .skill-stats {
        width: 100%;
        justify-content: space-around;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .nav-title {
        position: static;
        transform: none;
    }
}

@media (max-width: 480px) {
    .dashboard-main {
        padding: 20px 16px;
    }

    .profile-section {
        padding: 24px;
    }

    .stat-card {
        padding: 16px;
    }

    .skill-row {
        padding: 16px;
    }
}
