:root {
    --primary-color: #4285f4;
    --secondary-color: #34a853;
    --accent-color: #fbbc04;
    --danger-color: #ea4335;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #dadce0;
    --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-hover: 0 4px 8px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Section */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.header-info h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.bio {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Card Styles */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8em;
}

.card h2 i {
    color: var(--primary-color);
}

/* Project Info */
.project-info h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.project-meta {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.meta-item i {
    color: var(--primary-color);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Contribution List */
.contribution-list {
    max-height: 400px;
    overflow-y: auto;
}

.contribution-item {
    padding: 15px;
    border-left: 4px solid var(--primary-color);
    background: var(--bg-color);
    margin-bottom: 15px;
    border-radius: 8px;
    transition: all 0.3s;
}

.contribution-item:hover {
    background: #e8f0fe;
    transform: translateX(5px);
}

.contribution-item h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.contribution-item p {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.contribution-item .date {
    color: var(--text-secondary);
    font-size: 0.85em;
    margin-top: 8px;
}

/* Channel List */
.channel-list {
    margin: 20px 0;
}

.channel-item {
    padding: 12px;
    background: var(--bg-color);
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.channel-item i {
    color: var(--primary-color);
}

/* Blog List */
.blog-list {
    max-height: 500px;
    overflow-y: auto;
}

.blog-post {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-post:hover {
    background: var(--bg-color);
}

.blog-post h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    cursor: pointer;
}

.blog-post h3:hover {
    text-decoration: underline;
}

.blog-post .post-meta {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 10px;
}

.blog-post p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Mentor Section */
.mentor-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 12px;
    margin-bottom: 25px;
}

.mentor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.mentor-info h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.mentor-info p {
    color: var(--text-secondary);
    font-size: 0.95em;
}

.feedback-list {
    max-height: 400px;
    overflow-y: auto;
}

.feedback-item {
    padding: 20px;
    background: var(--bg-color);
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid var(--secondary-color);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.feedback-header strong {
    color: var(--primary-color);
}

.feedback-date {
    color: var(--text-secondary);
    font-size: 0.85em;
}

.feedback-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
    max-height: 500px;
    overflow-y: auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--card-bg);
}

.timeline-item h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.timeline-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.timeline-date {
    color: var(--text-secondary);
    font-size: 0.85em;
    margin-top: 8px;
}

/* Milestone List */
.milestone-list {
    max-height: 400px;
    overflow-y: auto;
}

.milestone-item {
    padding: 20px;
    background: var(--bg-color);
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: start;
    gap: 15px;
}

.milestone-icon {
    font-size: 2em;
    color: var(--accent-color);
}

.milestone-content h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.milestone-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.milestone-date {
    color: var(--text-secondary);
    font-size: 0.85em;
    margin-top: 8px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 15px;
}

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

.btn-primary:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #2d8e47;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Footer */
.dashboard-footer {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

.dashboard-footer p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

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

    .header-info h1 {
        font-size: 1.8em;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-links {
        justify-content: center;
    }

    .project-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
