/* Software Page Specific Styles */

.page-container {
    display: flex;
    min-height: calc(100vh - 80px);
}

/* Sidebar Styles */
.sidebar {
    width: 300px;
    background-color: var(--darker-bg);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    position: sticky;
    top: 65px;
    height: calc(100vh - 65px);
    overflow-y: auto;
}

.sidebar-header h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Progress Bar */
.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), #60a5fa);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    display: block;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Sidebar Navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    background-color: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-blue);
    transform: translateX(5px);
}

.nav-item.active {
    background-color: rgba(37, 99, 235, 0.2);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.nav-item.completed {
    border-color: #10b981;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--dark-bg);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.nav-item.active .step-number {
    background-color: var(--primary-blue);
    color: white;
}

.nav-item.completed .step-number {
    background-color: #10b981;
    color: white;
}

.step-title {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
}

.check-mark {
    display: none;
    color: #10b981;
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

.nav-item.completed .check-mark {
    display: block;
}

.nav-item.completed .step-number {
    display: none;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 3rem;
    max-width: 900px;
}

.content-header {
    margin-bottom: 3rem;
}

.content-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #60a5fa, var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Step Sections */
.step-section {
    margin-bottom: 4rem;
    scroll-margin-top: 80px;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.step-badge {
    background: linear-gradient(135deg, var(--primary-blue), #60a5fa);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-right: 1rem;
}

.step-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.step-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.step-content h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.step-content h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

/* Lists */
.step-list {
    list-style: none;
    counter-reset: step-counter;
    margin-bottom: 2rem;
}

.step-list > li {
    counter-increment: step-counter;
    margin-bottom: 2rem;
    padding-left: 3rem;
    position: relative;
}

.step-list > li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-blue), #60a5fa);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-list > li strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.step-list > li p {
    margin-bottom: 0.75rem;
}

.step-list > li ul {
    margin-top: 0.75rem;
    padding-left: 1.5rem;
}

.step-list > li ul li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.requirements-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.requirements-list li {
    padding: 0.75rem 1rem;
    background-color: var(--dark-bg);
    border-left: 3px solid var(--primary-blue);
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    border-radius: 4px;
}

/* Info Boxes */
.info-box,
.warning-box,
.success-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.info-box {
    background-color: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-blue);
}

.info-box h4 {
    color: #60a5fa;
    margin-bottom: 0.75rem;
}

.info-box ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.info-box ul li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.warning-box {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}

.warning-box h4 {
    color: #fbbf24;
    margin-bottom: 0.75rem;
}

.success-box {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.success-box h4 {
    color: #34d399;
    margin-bottom: 0.75rem;
}

/* Code Blocks */
pre {
    background-color: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #60a5fa;
    font-size: 0.9rem;
}

pre code {
    color: var(--text-secondary);
}

/* Links */
.external-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.external-link::after {
    content: ' →';
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.external-link:hover {
    color: #60a5fa;
}

.external-link:hover::after {
    transform: translateX(4px);
}

/* Complete Step Button */
.complete-step {
    margin-top: 2rem;
    width: 100%;
}

.complete-step.completed {
    background: linear-gradient(135deg, #10b981, #34d399);
    cursor: default;
}

.complete-step.completed:hover {
    transform: none;
}

/* Resources Section */
.resources-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.resources-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #60a5fa, var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.resource-link {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.resource-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
    border-color: var(--primary-blue);
}

.resource-link h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.resource-link p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }

    .main-content {
        padding: 2rem 2rem;
    }
}

@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .main-content {
        padding: 1.5rem 1rem;
    }

    .content-header h1 {
        font-size: 2rem;
    }

    .step-header h2 {
        font-size: 1.4rem;
    }

    .step-list > li {
        padding-left: 2.5rem;
    }

    .step-list > li::before {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

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

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}
