:root {
    --primary-color: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #3b82f6;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --card-bg: #ffffff;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --border-radius: 12px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    padding: 2.5rem;
    color: white;
    box-shadow: var(--shadow-md);
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.current-progress {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 800px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.progress-item:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.15);
}

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

.track-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.track-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.track-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.habits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

/* Notes Section Styles */
.notes-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.notes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.notes-input {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notes-input input,
.notes-input select,
.notes-input textarea {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.notes-input input:focus,
.notes-input select:focus,
.notes-input textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.notes-input textarea {
    min-height: 200px;
    resize: vertical;
    line-height: 1.6;
}

.save-note-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.save-note-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 700px;
    overflow-y: auto;
    padding-right: 1rem;
}

.notes-list::-webkit-scrollbar {
    width: 8px;
}

.notes-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.notes-list::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

.note-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.note-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.delete-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.delete-btn:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.note-card h3 {
    margin: 0;  /* Remove margin since it's now handled by note-header */
    color: var(--primary-color);
    font-size: 1rem;
}

.note-card .note-meta {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0.75rem 0;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.note-content {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    color: #00ff00;
    white-space: pre-wrap;
    line-height: 1.4;
    font-size: 0.9rem;
    background: #000000;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-top: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.note-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.note-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.delete-note {
    background-color: var(--danger-color);
    color: white;
}

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

.note-actions button:hover {
    transform: translateY(-1px);
    filter: brightness(110%);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 1.5rem;
    }

    main {
        padding: 0 1rem;
    }

    .notes-container {
        grid-template-columns: 1fr;
    }

    .track-container {
        grid-template-columns: 1fr;
    }
}

/* Section Headers */
h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

/* Add more styles as needed */
.topics-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.topics-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.project-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    border-left: 4px solid var(--primary-color);
}

.project-card h5 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.skill-tag {
    background: var(--primary-light);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
}

.project-progress {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.duration {
    color: var(--primary-color);
    font-weight: 500;
    margin: 0.5rem 0;
}

h4 {
    color: var(--text-color);
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.2rem;
}

/* Daily Challenge Section Styles */
.daily-challenge-section {
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.track-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    overflow-x: hidden;
}

.challenge-item {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.challenge-item h3 {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    word-wrap: break-word;
}

.challenge-item p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.code-examples {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    grid-template-columns: 1fr;
}

.code-section {
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    overflow-x: auto;
}

.code-section h4 {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
}

pre {
    background: #2d2d2d;
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.4;
}

#challengeSolution {
    width: 100%;
    min-height: 80px;
    padding: 0.75rem;
    border: 2px solid #000000;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 0.75rem 0;
    resize: vertical;
    background-color: #000000;
    color: #00ff00;
    line-height: 1.4;
    tab-size: 4;
}

#challengeSolution::placeholder {
    color: #666666;
}

/* Previous solutions styling */
#previousSolutions {
    margin-top: 1.5rem;
}

#previousSolutions .note-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

#previousSolutions .note-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

#previousSolutions h3 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

#previousSolutions .note-meta {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

#previousSolutions .note-content {
    background: #000000;
    color: #00ff00;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    line-height: 1.6;
    font-size: 0.95rem;
    overflow-x: auto;
}

/* Add a code-like appearance to the solution */
#previousSolutions .note-content::-webkit-scrollbar {
    height: 8px;
}

#previousSolutions .note-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#previousSolutions .note-content::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .challenge-content {
        padding: 1rem;
    }

    #previousSolutions .note-card {
        padding: 1rem;
    }

    .notes-input.textarea {
        min-height: 150px;
    }
}

.challenge-group {
    display: grid;
    gap: 1rem;
}

.code-examples {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.code-section {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.code-section h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
}

pre {
    background: #2d2d2d;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    overflow-x: auto;
}

code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .track-card {
        padding: 1.5rem;
    }

    .code-examples {
        grid-template-columns: 1fr 1fr;
    }

    .challenge-item h3 {
        font-size: 1.2rem;
    }

    .challenge-item p {
        font-size: 1rem;
    }

    pre {
        font-size: 0.9rem;
    }

    #challengeSolution {
        min-height: 100px;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .daily-challenge-section {
        padding: 0 0.5rem;
    }

    .track-card {
        padding: 0.75rem;
    }

    .code-section {
        padding: 0.5rem;
    }

    .save-note-btn {
        width: 100%;
        margin: 0.5rem 0;
    }
}