/* ===== Global Styles ===== */
.sog-client-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
}

.sog-client-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
    pointer-events: none;
}

.sog-client-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 50px;
    margin-bottom: 30px;
    position: relative;
    animation: fadeInUp 0.6s ease;
}

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

.sog-client-title {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    text-align: center;
    padding-bottom: 20px;
    position: relative;
    letter-spacing: -1px;
}

.sog-client-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* ===== Form Styles ===== */
.sog-generator-form {
    max-width: 900px;
    margin: 0 auto;
}

.sog-form-group {
    margin-bottom: 35px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sog-form-group:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
    transform: translateY(-2px);
}

.sog-form-group label {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.sog-form-group label::before {
    content: '▸';
    margin-right: 8px;
    color: #667eea;
    font-size: 16px;
    font-weight: bold;
}

.sog-required {
    color: #e53e3e;
    font-weight: 700;
}

.sog-input,
.sog-select,
.sog-textarea,
.sog-multi-select {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    color: #2d3748;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-weight: 500;
}

.sog-input:hover,
.sog-select:hover,
.sog-textarea:hover,
.sog-multi-select:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.sog-input:focus,
.sog-select:focus,
.sog-textarea:focus,
.sog-multi-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 4px 20px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
    background: #ffffff;
}

.sog-textarea {
    resize: vertical;
    min-height: 100px;
}

.sog-multi-select {
    height: 120px;
}

.sog-help-text {
    font-size: 13px;
    color: #718096;
    margin-top: 6px;
    font-style: italic;
}

.sog-loading {
    color: #4f46e5;
    font-size: 14px;
    margin-top: 8px;
    font-weight: 500;
}

/* ===== Level Selection ===== */
.sog-option-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.sog-level-btn {
    padding: 16px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sog-level-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.sog-level-btn:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.sog-level-btn:hover::before {
    opacity: 0.1;
}

.sog-level-btn.active {
    border-color: transparent;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.sog-level-btn.active::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* ===== Key Phrase Selection ===== */
.sog-radio-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.sog-radio-label {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    min-height: 60px;
}

.sog-radio-label::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.sog-radio-label:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.sog-radio-label:hover::before {
    opacity: 0.1;
}

.sog-radio-label input[type="radio"] {
    margin-right: 12px;
    margin-top: 3px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    accent-color: #667eea;
    flex-shrink: 0;
}

.sog-radio-label span {
    flex: 1;
    color: #2d3748;
    line-height: 1.5;
    font-size: 14px;
    font-weight: 500;
}

.sog-radio-label input[type="radio"]:checked + span {
    font-weight: 700;
    color: #667eea;
}

.sog-radio-label:has(input[type="radio"]:checked) {
    border-color: transparent;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.sog-radio-label:has(input[type="radio"]:checked) span {
    color: #ffffff;
    font-weight: 700;
}

.sog-radio-label:has(input[type="radio"]:checked) input[type="radio"] {
    accent-color: #ffffff;
}

.sog-radio-label:has(input[type="radio"]:checked)::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    animation: checkmarkPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== Buttons ===== */
.sog-form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

.sog-btn {
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 14px;
}

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

.sog-btn:hover::before {
    left: 100%;
}

.sog-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sog-btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5), 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.sog-btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.sog-btn-secondary {
    background: #718096;
    color: #ffffff;
}

.sog-btn-secondary:hover {
    background: #4a5568;
    transform: translateY(-2px);
}

.sog-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.sog-btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.sog-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.sog-btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.sog-btn-link {
    background: transparent;
    color: #4f46e5;
    text-decoration: underline;
    padding: 8px 16px;
}

.sog-btn-link:hover {
    color: #4338ca;
}

.sog-btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* ===== Output Section ===== */
.sog-output-section {
    margin-top: 40px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.6s ease;
}

.sog-output-subtitle {
    text-align: center;
    color: #718096;
    font-size: 15px;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Variations Container */
.sog-variations-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.sog-variation {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sog-variation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.sog-variation:hover {
    border-color: #667eea;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.sog-variation:hover::before {
    opacity: 1;
}

.sog-variation.recommended {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}

.sog-variation.recommended::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    opacity: 1;
}

.sog-variation-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.sog-variation-label {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #667eea;
}

.sog-quality-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: #f7fafc;
    border-radius: 20px;
    padding: 6px 16px;
    overflow: hidden;
}

.sog-quality-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.2;
}

.sog-quality-badge.excellent .sog-quality-bar {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.sog-quality-badge.good .sog-quality-bar {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.sog-quality-badge.fair .sog-quality-bar {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.sog-quality-text {
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: 12px;
    color: #2d3748;
}

.sog-recommended-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
    }
}

.sog-variation-text {
    font-size: 16px;
    line-height: 1.7;
    color: #2d3748;
    padding: 20px;
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-weight: 500;
}

.sog-variation.recommended .sog-variation-text {
    border-left-color: #10b981;
}

.sog-variation-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

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

.sog-output-section h3 {
    color: #1a202c;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.sog-output-text {
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    font-size: 18px;
    line-height: 1.8;
    color: #2d3748;
    border-left: 4px solid #4f46e5;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sog-output-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Objectives List ===== */
.sog-objectives-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
}

.sog-objectives-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sog-objective-item {
    display: flex;
    align-items: flex-start;
    padding: 24px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sog-objective-item:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.1);
}

.sog-objective-checkbox {
    margin-right: 16px;
}

.sog-objective-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #4f46e5;
}

.sog-objective-content {
    flex: 1;
}

.sog-objective-text {
    font-size: 16px;
    line-height: 1.6;
    color: #2d3748;
    margin-bottom: 12px;
}

.sog-objective-meta {
    font-size: 13px;
    color: #718096;
    margin-bottom: 6px;
}

.sog-objective-actions {
    display: flex;
    gap: 8px;
    flex-direction: column;
    margin-left: 16px;
}

.sog-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.sog-empty-state p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* ===== Modal ===== */
.sog-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.sog-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
}

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

.sog-modal-close {
    color: #718096;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.sog-modal-close:hover,
.sog-modal-close:focus {
    color: #2d3748;
}

.sog-combined-text {
    background: #f7fafc;
    padding: 24px;
    border-radius: 8px;
    margin: 24px 0;
    max-height: 400px;
    overflow-y: auto;
}

.sog-combined-text ol {
    padding-left: 24px;
}

.sog-combined-text li {
    margin-bottom: 16px;
    line-height: 1.6;
    color: #2d3748;
}

.sog-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .sog-client-container {
        padding: 24px;
    }

    .sog-client-title {
        font-size: 28px;
    }

    .sog-option-list {
        grid-template-columns: 1fr;
    }

    .sog-radio-list {
        grid-template-columns: 1fr;
    }

    .sog-progress-steps {
        grid-template-columns: repeat(4, 1fr);
    }

    .sog-progress-step-label {
        font-size: 9px;
    }

    .sog-form-actions,
    .sog-output-actions,
    .sog-objectives-toolbar {
        flex-direction: column;
    }

    .sog-btn {
        width: 100%;
    }

    .sog-objective-item {
        flex-direction: column;
    }

    .sog-objective-actions {
        flex-direction: row;
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
    }

    .sog-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 24px;
    }

    .sog-keyboard-shortcuts {
        bottom: 15px;
        right: 15px;
    }

    .sog-shortcuts-toggle {
        padding: 10px 16px;
        font-size: 12px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .sog-radio-list {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .sog-option-list {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 480px) {
    .sog-client-wrapper {
        padding: 10px;
    }

    .sog-client-container {
        padding: 20px;
    }

    .sog-output-text {
        font-size: 16px;
    }
}

/* ===== Loading Animation ===== */
.sog-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sog-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #4f46e5;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* ===== Error States ===== */
.error-field {
    border-color: #ef4444 !important;
}

/* ===== Accessibility ===== */
.sog-btn:focus,
.sog-input:focus,
.sog-select:focus,
.sog-textarea:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* ===== Progress Tracker ===== */
.sog-progress-tracker-container {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 35px;
    animation: slideDown 0.5s ease;
}

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

.sog-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sog-progress-title {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #667eea;
}

.sog-progress-percentage {
    font-weight: 800;
    font-size: 20px;
    color: #667eea;
}

.sog-progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.sog-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.sog-progress-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.sog-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sog-progress-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(226, 232, 240, 0.8);
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.sog-progress-step.completed .sog-progress-step-circle {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transform: scale(1.1);
}

.sog-progress-step.completed .sog-progress-step-circle::after {
    content: '✓';
    position: absolute;
}

.sog-progress-step-label {
    font-size: 11px;
    font-weight: 600;
    color: #718096;
    text-align: center;
    line-height: 1.2;
    transition: color 0.3s;
}

.sog-progress-step.completed .sog-progress-step-label {
    color: #10b981;
}

/* ===== Keyboard Shortcuts ===== */
.sog-keyboard-shortcuts {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.sog-shortcuts-toggle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sog-shortcuts-toggle:hover {
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.sog-shortcuts-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-width: 280px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.sog-shortcuts-title {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #667eea;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.sog-shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f7fafc;
}

.sog-shortcut-item:last-of-type {
    border-bottom: none;
}

.sog-shortcut-item kbd {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    margin: 0 2px;
}

.sog-shortcut-item span {
    font-size: 13px;
    color: #2d3748;
    font-weight: 500;
}

.sog-shortcuts-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f7fafc;
    font-size: 11px;
    color: #718096;
    font-style: italic;
    text-align: center;
}

/* Success/Error Notifications */
.sog-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    animation: slideInRight 0.4s ease, fadeOutRight 0.4s ease 4.6s;
    animation-fill-mode: forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.sog-notification-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.sog-notification-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.sog-notification-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* Tooltips */
.sog-tooltip {
    position: relative;
    display: inline-block;
}

.sog-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #4f46e5;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    cursor: help;
    margin-left: 6px;
}

.sog-tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a202c;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sog-tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a202c;
}

.sog-tooltip:hover .sog-tooltip-text,
.sog-tooltip-icon:hover + .sog-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Enhanced Input States */
.sog-input-wrapper {
    position: relative;
}

.sog-input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    font-size: 18px;
}

.sog-input-valid {
    border-color: #10b981 !important;
}

.sog-input-valid + .sog-input-icon {
    color: #10b981;
}

.sog-input-error {
    border-color: #ef4444 !important;
}

.sog-input-error + .sog-input-icon {
    color: #ef4444;
}

.sog-error-message {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sog-error-message::before {
    content: '⚠';
    font-size: 14px;
}

/* Form Group Enhancement */
.sog-form-group {
    position: relative;
    transition: all 0.3s ease;
}

.sog-form-group.active {
    background: #f7fafc;
    padding: 16px;
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 8px;
}

.sog-form-group-complete::after {
    content: '✓';
    position: absolute;
    right: 16px;
    top: 16px;
    color: #10b981;
    font-size: 20px;
    font-weight: 700;
}

/* Disabled State */
.sog-input:disabled,
.sog-select:disabled,
.sog-textarea:disabled {
    background: #f7fafc;
    color: #718096;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Button States */
.sog-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.sog-btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.sog-btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Character Counter */
.sog-char-counter {
    font-size: 12px;
    color: #718096;
    text-align: right;
    margin-top: 4px;
}

.sog-char-counter.warning {
    color: #f59e0b;
}

.sog-char-counter.error {
    color: #ef4444;
}

/* Copy to Clipboard Button */
.sog-copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #4f46e5;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sog-copy-btn:hover {
    background: #4338ca;
}

.sog-copy-btn.copied {
    background: #10b981;
}

.sog-copy-btn.copied::after {
    content: ' ✓';
}

/* Enhanced Empty State */
.sog-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.sog-empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.sog-empty-state h3 {
    font-size: 22px;
    color: #2d3748;
    margin-bottom: 12px;
}

.sog-empty-state p {
    font-size: 16px;
    margin-bottom: 24px;
    color: #718096;
}

/* Skeleton Loading */
.sog-skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f7fafc 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.sog-skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.sog-skeleton-title {
    height: 24px;
    margin-bottom: 12px;
}

/* Accessibility Enhancements */
.sog-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible for Keyboard Navigation */
.sog-btn:focus-visible,
.sog-level-btn:focus-visible {
    outline: 3px solid #4f46e5;
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .sog-form-actions,
    .sog-objectives-toolbar,
    .sog-objective-actions,
    .sog-objective-checkbox,
    .sog-notification,
    .sog-progress-tracker {
        display: none;
    }

    .sog-client-container {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }

    .sog-output-section {
        border: 2px solid #000;
        background: #fff !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .sog-client-wrapper {
        background: #1a202c;
    }

    .sog-client-container {
        background: #2d3748;
        color: #e2e8f0;
    }

    .sog-client-title {
        color: #f7fafc;
    }

    .sog-input,
    .sog-select,
    .sog-textarea {
        background: #1a202c;
        color: #e2e8f0;
        border-color: #4a5568;
    }

    .sog-level-btn {
        background: #1a202c;
        color: #e2e8f0;
        border-color: #4a5568;
    }

    .sog-level-btn:hover {
        background: #2d3748;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
