/**
 * Index Page Styles
 * Clean admin dashboard design - industrial/utilitarian aesthetic
 */

/* ==================== Base Layout ==================== */
.custom-index {
    padding: 32px;
    min-height: calc(100vh - 100px);
    max-width: 1200px;
    margin: 0 auto;
    background: #f5f6f8;
}

/* ==================== Welcome Header ==================== */
.welcome-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e1e4e8;
}

.welcome-header h1 {
    font-size: 1.75em;
    font-weight: 600;
    color: #24292f;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.welcome-header h1 i {
    color: #0969da;
    font-size: 0.9em;
}

.welcome-user {
    font-size: 14px;
    color: #57606a;
    background: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #d0d7de;
}

.welcome-user strong {
    color: #24292f;
    font-weight: 600;
}

/* ==================== Section Title ==================== */
.section-title {
    font-size: 13px;
    font-weight: 600;
    color: #57606a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    font-size: 14px;
}

/* ==================== Feature Cards Grid ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border: 1px solid #d0d7de;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
    border-color: #0969da;
    box-shadow: 0 1px 3px rgba(9, 105, 218, 0.1);
    text-decoration: none;
    color: inherit;
}

/* ==================== Feature Icons ==================== */
.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-icon.purple {
    background: #f3f0ff;
    color: #8250df;
    border: 1px solid #d8b9ff;
}

.feature-icon.blue {
    background: #ddf4ff;
    color: #0969da;
    border: 1px solid #80ccff;
}

.feature-icon.green {
    background: #dafbe1;
    color: #1a7f37;
    border: 1px solid #82e596;
}

.feature-icon.orange {
    background: #fff1e5;
    color: #bc4c00;
    border: 1px solid #ffbc8f;
}

/* ==================== Feature Card Content ==================== */
.feature-content {
    flex: 1;
    min-width: 0;
}

.feature-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #24292f;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.feature-content p {
    color: #57606a;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.feature-arrow {
    color: #8c959f;
    font-size: 14px;
    transition: transform 0.15s ease, color 0.15s ease;
    align-self: center;
}

.feature-card:hover .feature-arrow {
    transform: translateX(4px);
    color: #0969da;
}

/* ==================== Quick Start Section ==================== */
.quick-start-section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #d0d7de;
}

.quick-start-section .section-title {
    margin-bottom: 20px;
}

/* ==================== Onboarding List ==================== */
.onboarding-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.onboarding-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #e1e4e8;
}

.onboarding-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.onboarding-item:first-child {
    padding-top: 0;
}

.onboarding-step {
    width: 32px;
    height: 32px;
    background: #f6f8fa;
    border: 2px solid #d0d7de;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #57606a;
    flex-shrink: 0;
}

.onboarding-item.completed .onboarding-step {
    background: #dafbe1;
    border-color: #1a7f37;
    color: #1a7f37;
}

.onboarding-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #24292f;
    margin: 0 0 6px 0;
}

.onboarding-content p {
    font-size: 13px;
    color: #57606a;
    line-height: 1.5;
    margin: 0;
}

.onboarding-content a {
    color: #0969da;
    text-decoration: none;
    font-weight: 500;
}

.onboarding-content a:hover {
    text-decoration: underline;
}

/* ==================== Login Required ==================== */
.login-required-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 40px 20px;
}

.login-required-card {
    background: #fff;
    border-radius: 12px;
    padding: 48px;
    text-align: center;
    border: 1px solid #d0d7de;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.login-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #fff1e5 0%, #ffbc8f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    font-size: 28px;
    color: #bc4c00;
    border: 2px solid #ffbc8f;
}

.login-required-card h2 {
    font-size: 22px;
    font-weight: 600;
    color: #24292f;
    margin: 0 0 12px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.login-required-card p {
    font-size: 14px;
    color: #57606a;
    line-height: 1.6;
    margin: 0 0 28px 0;
}

.login-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0969da;
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    border: none;
    cursor: pointer;
}

.login-button:hover {
    background: #0860ca;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(9, 105, 218, 0.3);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(9, 105, 218, 0.2);
}

.login-button i {
    font-size: 16px;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .custom-index {
        padding: 20px 16px;
    }

    .welcome-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .welcome-header h1 {
        font-size: 1.4em;
    }

    .feature-card {
        padding: 16px;
        gap: 16px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .onboarding-item {
        gap: 12px;
    }

    .onboarding-step {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .onboarding-content h4 {
        font-size: 13px;
    }

    .onboarding-content p {
        font-size: 12px;
    }
}