/**
 * Shopify Onboarding - Client Styles
 */

/* General */
* {
    box-sizing: border-box;
}

body.so-client-area {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: #f5f5f5;
}

.so-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.so-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.so-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.so-logo {
    font-size: 20px;
    font-weight: 600;
    color: #2271b1;
    text-decoration: none;
}

.so-nav {
    display: flex;
    gap: 20px;
}

.so-nav a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.so-nav a:hover {
    color: #2271b1;
}

/* Main */
.so-main {
    flex: 1;
    padding: 20px;
}

/* Footer */
.so-footer {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 20px 0;
    margin-top: 40px;
}

.so-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Register/Login */
.so-register-container,
.so-login-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
}

.so-register-box,
.so-login-box {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.so-register-header,
.so-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.so-register-header h2,
.so-login-header h2 {
    margin: 0 0 10px;
    font-size: 28px;
    color: #1d2327;
}

.so-register-header p,
.so-login-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Forms */
.so-form {
    margin: 0;
}

.so-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.so-form-group {
    margin-bottom: 20px;
}

.so-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
}

.so-form-group input[type="text"],
.so-form-group input[type="email"],
.so-form-group input[type="password"],
.so-form-group input[type="tel"],
.so-form-group input[type="url"],
.so-form-group select,
.so-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.so-form-group input:focus,
.so-form-group select:focus,
.so-form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
}

.so-form-group input.error {
    border-color: #dc3232;
}

.so-form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}

.so-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal !important;
}

.so-checkbox input[type="checkbox"] {
    margin: 0;
    width: auto;
}

.so-form-actions {
    margin-top: 30px;
}

.so-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.so-btn-primary {
    background: #2271b1;
    color: #fff;
    width: 100%;
}

.so-btn-primary:hover {
    background: #135e96;
}

.so-btn-secondary {
    background: #f0f0f0;
    color: #1d2327;
}

.so-btn-secondary:hover {
    background: #e0e0e0;
}

.so-btn-success {
    background: #46b450;
    color: #fff;
}

.so-btn-success:hover {
    background: #2ea02e;
}

.so-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Messages */
.so-form-message {
    margin-top: 15px;
}

.so-success {
    padding: 12px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
}

.so-error {
    padding: 12px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
}

.so-register-footer,
.so-login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Wizard */
.so-wizard-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
}

.so-wizard-header {
    text-align: center;
    margin-bottom: 40px;
}

.so-wizard-header h1 {
    margin: 0 0 10px;
    font-size: 32px;
    color: #1d2327;
}

.so-wizard-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.so-wizard-steps {
    display: flex;
    justify-content: space-between;
    margin: 40px 0 20px;
    position: relative;
}

.so-wizard-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.so-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s;
}

.so-step.active .step-number,
.so-step.completed .step-number {
    background: #2271b1;
    color: #fff;
}

.step-label {
    font-size: 12px;
    color: #666;
    text-align: center;
    max-width: 100px;
}

.so-step.active .step-label {
    color: #1d2327;
    font-weight: 600;
}

.so-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.so-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1 0%, #135e96 100%);
    transition: width 0.5s ease;
}

#so-wizard-form {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.so-wizard-panel {
    display: none;
}

.so-wizard-panel.active {
    display: block;
}

.so-wizard-panel h2 {
    margin: 0 0 25px;
    font-size: 24px;
    color: #1d2327;
}

.so-instructions {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.so-instructions h3 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #1d2327;
}

.so-instructions ul,
.so-instructions ol {
    margin: 0;
    padding-left: 20px;
}

.so-instructions li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.so-alert {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.so-alert-info {
    background: #e5f5ff;
    border-left: 4px solid #2271b1;
    color: #135e96;
}

.so-alert-warning {
    background: #fff3cd;
    border-left: 4px solid #f0ad4e;
    color: #856404;
}

.so-alert-success {
    background: #d4edda;
    border-left: 4px solid #46b450;
    color: #155724;
}

.so-alert strong {
    display: block;
    margin-bottom: 5px;
}

.so-wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Dashboard */
.so-dashboard {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

.so-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.so-dashboard-header h1 {
    margin: 0;
    font-size: 32px;
    color: #1d2327;
}

.so-dashboard-actions {
    display: flex;
    gap: 10px;
}

.so-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.so-empty-state p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.so-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.so-project-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.so-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.project-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-header h3 {
    margin: 0;
    font-size: 20px;
    color: #1d2327;
}

.project-status {
    padding: 4px 12px;
    background: #f0ad4e;
    color: #fff;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-completed .project-status {
    background: #46b450;
}

.project-body {
    padding: 20px;
}

.project-body p {
    margin: 0 0 15px;
    color: #666;
}

.project-progress {
    margin: 15px 0;
}

.progress-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1 0%, #135e96 100%);
}

.progress-percentage {
    font-size: 14px;
    font-weight: 600;
    color: #2271b1;
}

.project-meta {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

.project-actions {
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .so-form-row {
        grid-template-columns: 1fr;
    }

    .so-wizard-steps {
        flex-wrap: wrap;
        gap: 20px;
    }

    .so-wizard-steps::before {
        display: none;
    }

    #so-wizard-form {
        padding: 20px;
    }

    .so-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .so-projects-grid {
        grid-template-columns: 1fr;
    }

    .so-wizard-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .so-wizard-navigation .so-btn {
        width: 100%;
    }
}
