@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #e6edf3;
    background: #0d1117;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(13, 110, 253, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(88, 166, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(33, 136, 255, 0.1) 0%, transparent 50%);
    min-height: 100vh;
    overflow-x: hidden;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeInUp 0.8s ease-out;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.header h1 {
    color: #f0f6fc;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0 20px rgba(88, 166, 255, 0.3);
    letter-spacing: -0.5px;
    animation: fadeInUp 0.8s ease-out;
    background: linear-gradient(135deg, #58a6ff, #79c0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cards */
.card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.5s ease-out;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #30363d;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.5rem;
    text-align: left;
}

.card-header h2, .card-header h3 {
    color: #f0f6fc;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #58a6ff, #79c0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-header h2::after, .card-header h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #58a6ff, #1f6feb);
    border-radius: 2px;
}

.card-header p {
    color: #7d8590;
    margin: 0;
    font-size: 16px;
}

.card-body {
    background: #161b22;
    color: #e6edf3;
    padding: 2rem;
}

/* Forms */
.form-control {
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    padding: 0.75rem;
    transition: all 0.3s ease;
    font-size: 16px;
}

.form-control:focus {
    background: #21262d;
    border-color: #58a6ff;
    color: #e6edf3;
    box-shadow: 0 0 0 0.2rem rgba(88, 166, 255, 0.25);
    outline: none;
}

.form-control::placeholder {
    color: #7d8590;
}

.form-label {
    color: #f0f6fc;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 16px;
}

.form-text {
    color: #7d8590;
    font-size: 14px;
    margin-top: 0.5rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    font-size: 16px;
    border: none;
}

.btn-primary {
    background: #0969da;
    color: #ffffff;
    font-weight: 600;
    border: 1px solid #1f6feb;
    box-shadow: 0 0 20px rgba(9, 105, 218, 0.3);
}

.btn-primary:hover {
    background: #1f6feb;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(31, 111, 235, 0.4);
}

.btn-success {
    background: #238636;
    color: #ffffff;
    border: 1px solid #2ea043;
}

.btn-success:hover {
    background: #2ea043;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(46, 160, 67, 0.4);
}

.btn-outline-primary {
    background: transparent;
    color: #58a6ff;
    border: 1px solid #30363d;
}

.btn-outline-primary:hover {
    background: #21262d;
    color: #58a6ff;
    border-color: #58a6ff;
}

/* Navigation */
.navbar {
    background: #161b22 !important;
    border-bottom: 1px solid #30363d;
    backdrop-filter: blur(10px);
    animation: slideInDown 0.6s ease-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: #f0f6fc !important;
    display: flex;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, #58a6ff, #79c0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand i {
    margin-right: 8px;
    color: #58a6ff;
}

.nav-link {
    color: #7d8590 !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #e6edf3 !important;
}

/* Task Tabs */
.nav-pills {
    gap: 0.5rem;
    background: #161b22;
    border-radius: 12px;
    padding: 8px;
    border: 1px solid #30363d;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
}

.nav-pills::-webkit-scrollbar {
    height: 4px;
}

.nav-pills::-webkit-scrollbar-track {
    background: #21262d;
    border-radius: 2px;
}

.nav-pills::-webkit-scrollbar-thumb {
    background: #656d76;
    border-radius: 2px;
}

.task-tab {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    background: transparent;
    color: #7d8590;
    margin: 0 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 120px;
    text-align: center;
}

.task-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.1), transparent);
    transition: left 0.5s;
}

.task-tab:hover::before {
    left: 100%;
}

.task-tab:hover {
    background: #21262d;
    color: #e6edf3;
    border-color: #30363d;
    transform: translateY(-1px);
    text-decoration: none;
}

.task-tab.active {
    background: #0969da;
    color: #ffffff;
    font-weight: 600;
    border-color: #1f6feb;
    box-shadow: 0 0 20px rgba(9, 105, 218, 0.3);
}

.task-tab.completed {
    background: #238636 !important;
    color: #ffffff !important;
    border-color: #2ea043 !important;
    font-weight: 600;
}

.task-tab.in-progress {
    background: #d29922 !important;
    color: #0d1117 !important;
    border-color: #f2cc60 !important;
    font-weight: 600;
}

.task-tab.locked {
    background: transparent !important;
    border-color: #30363d !important;
    opacity: 0.5;
    color: #656d76 !important;
    cursor: not-allowed;
}

.task-tab.available {
    background: transparent;
    color: #7d8590;
    border-color: #30363d;
}

.task-tab.available:hover {
    background: #21262d;
    color: #e6edf3;
    border-color: #58a6ff;
}

/* Content Container */
.content-container {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

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

.content-container h2 {
    color: #f0f6fc;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #58a6ff, #79c0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #58a6ff, #1f6feb);
    border-radius: 2px;
}

.content-container h3 {
    color: #f0f6fc;
    font-size: 20px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-container p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #e6edf3;
    font-weight: 400;
}

.content-container ul, .content-container ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.content-container li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #e6edf3;
}

.content-container li::marker {
    color: #58a6ff;
}

.content-container a {
    color: #58a6ff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.content-container a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: #58a6ff;
    transition: width 0.3s ease;
}

.content-container a:hover {
    color: #79c0ff;
}

.content-container a:hover::after {
    width: 100%;
}

/* Subtask Cards */
.subtask-card {
    background: #21262d;
    border: 1px solid #30363d;
    border-left: 4px solid #30363d;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin-bottom: 1rem;
    padding: 1.5rem;
}

.subtask-card:hover {
    border-left-color: #58a6ff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.subtask-card.completed {
    border-left-color: #238636;
    background: linear-gradient(135deg, rgba(35, 134, 54, 0.1) 0%, rgba(46, 160, 67, 0.05) 100%);
}

.subtask-card.in-progress {
    border-left-color: #d29922;
    background: linear-gradient(135deg, rgba(210, 153, 34, 0.1) 0%, rgba(242, 204, 96, 0.05) 100%);
}

/* Card structure for multiple link tasks */
.subtask-card .card-body {
    background: transparent;
    padding: 0;
    color: #e6edf3;
}

.subtask-card .card-title {
    color: #f0f6fc;
    font-size: 16px;
    font-weight: 600;
}

.subtask-card .card-text {
    color: #7d8590;
    font-size: 14px;
    line-height: 1.5;
}

/* Button styling for task links */
.subtask-card .btn {
    border-radius: 6px;
    font-size: 13px;
    padding: 0.4rem 0.8rem;
}

.subtask-card .btn-outline-primary {
    border: 1px solid #30363d;
    color: #58a6ff;
    background: transparent;
}

.subtask-card .btn-outline-primary:hover {
    background: #58a6ff;
    color: #ffffff;
    border-color: #58a6ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(88, 166, 255, 0.3);
}

/* Task status indicators */
.badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
}

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

    .card-body {
        padding: 1.5rem;
    }

    .task-tab {
        margin-bottom: 0.5rem;
        flex: 1;
        min-width: 120px;
        text-align: center;
    }

    .nav-pills {
        flex-wrap: wrap;
        gap: 8px;
    }

    .content-container {
        padding: 24px;
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .task-tab {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 80px;
    }

    .task-tab i {
        display: none;
    }
}
