/* Phone Activation System - Microsoft Style */

:root {
    --primary-color: #0067C0;
    --primary-hover: #005BA1;
    --success-color: #107C10;
    --error-color: #D13438;
    --warning-color: #FFB900;
    --border-color: #D1D1D1;
    --bg-light: #F3F3F3;
    --text-primary: #323130;
    --text-secondary: #605E5C;
    --shadow-sm: 0 1.6px 3.6px rgba(0,0,0,0.132), 0 0.3px 0.9px rgba(0,0,0,0.108);
    --shadow-md: 0 3.2px 7.2px rgba(0,0,0,0.132), 0 0.6px 1.8px rgba(0,0,0,0.108);
    --shadow-lg: 0 6.4px 14.4px rgba(0,0,0,0.132), 0 1.2px 3.6px rgba(0,0,0,0.108);
}

* {
    box-sizing: border-box;
}

.phone-activation-container {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
    max-width: 640px;
    margin: 40px auto;
    padding: 0 20px;
}

.activation-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.activation-header {
    background: linear-gradient(135deg, #0078D4 0%, #0067C0 100%);
    color: white;
    padding: 40px 32px;
    text-align: center;
}

.activation-header h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.activation-header .subtitle {
    margin: 0;
    font-size: 15px;
    opacity: 0.9;
    font-weight: 400;
}

.activation-steps {
    padding: 32px;
}

.step {
    animation: fadeIn 0.3s ease-in-out;
}

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

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.step-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.step-content {
    padding-left: 52px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    font-family: 'Segoe UI', sans-serif;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.form-control::placeholder {
    color: #A19F9D;
}

textarea.form-control {
    resize: vertical;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
}

.help-text {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    position: relative;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-secondary {
    background: #F3F2F1;
    color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: #E1DFDD;
}

.btn-link {
    background: transparent;
    color: var(--primary-color);
    padding: 8px 12px;
    font-weight: 600;
}

.btn-link:hover {
    background: rgba(0, 103, 192, 0.05);
    transform: none;
    box-shadow: none;
}

.btn-loader {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.message {
    margin: 16px 0;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.message.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

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

.message.success {
    background: #DFF6DD;
    color: var(--success-color);
    border: 1px solid #92C353;
}

.message.error {
    background: #FDE7E9;
    color: var(--error-color);
    border: 1px solid #F1707B;
}

.license-info {
    background: var(--bg-light);
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.info-item:not(:last-child) {
    border-bottom: 1px solid #E1E1E1;
}

.info-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.info-value {
    font-size: 14px;
    color: var(--text-primary);
    font-family: 'Consolas', monospace;
}

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #DFF6DD;
    color: var(--success-color);
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.button-group .btn {
    flex: 1;
}

.success-icon {
    text-align: center;
    margin-bottom: 24px;
}

.confirmation-box {
    background: var(--bg-light);
    border: 2px solid var(--success-color);
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
    text-align: center;
}

.confirmation-box label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cid-display {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    background: white;
    padding: 16px;
    border-radius: 4px;
    word-break: break-all;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.instructions {
    background: #FFF4CE;
    border-left: 4px solid var(--warning-color);
    padding: 16px;
    margin: 24px 0;
    border-radius: 4px;
}

.instructions h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

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

.instructions li {
    margin: 6px 0;
    font-size: 14px;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 640px) {
    .phone-activation-container {
        padding: 0 16px;
        margin: 20px auto;
    }
    
    .activation-header {
        padding: 32px 24px;
    }
    
    .activation-header h1 {
        font-size: 24px;
    }
    
    .activation-steps {
        padding: 24px 20px;
    }
    
    .step-content {
        padding-left: 0;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .cid-display {
        font-size: 14px;
    }
}