/* ================================================
   CloudIP Custom Theme - License Status Styles
   For WHMCS Hosted - CloudIP Theme
   ================================================ */

/* ================================================
   SIMPLIFIED LICENSE STATUS CARD
   ================================================ */

.cloudip-license-status {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
}

.cloudip-license-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cloudip-license-icon {
    font-size: 48px;
    line-height: 1;
}

.cloudip-license-title {
    margin: 0 0 4px 0;
    font-size: 22px;
    font-weight: 700;
}

.cloudip-license-message {
    margin: 0;
    font-size: 14px;
    opacity: 0.85;
}

/* Status Colors */
.cloudip-status-pending-payment .cloudip-license-header {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}
.cloudip-status-pending-payment .cloudip-license-title,
.cloudip-status-pending-payment .cloudip-license-message {
    color: #92400E;
}

.cloudip-status-pending-activation .cloudip-license-header {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
}
.cloudip-status-pending-activation .cloudip-license-title,
.cloudip-status-pending-activation .cloudip-license-message {
    color: #1E40AF;
}

.cloudip-status-activated .cloudip-license-header {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
}
.cloudip-status-activated .cloudip-license-title,
.cloudip-status-activated .cloudip-license-message {
    color: #065F46;
}

.cloudip-status-suspended .cloudip-license-header {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
}
.cloudip-status-suspended .cloudip-license-title,
.cloudip-status-suspended .cloudip-license-message {
    color: #991B1B;
}

.cloudip-status-cancelled .cloudip-license-header {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
}
.cloudip-status-cancelled .cloudip-license-title,
.cloudip-status-cancelled .cloudip-license-message {
    color: #4B5563;
}

/* ================================================
   LICENSE DETAILS SECTION
   ================================================ */

.cloudip-license-body {
    padding: 24px;
}

.cloudip-license-key-section {
    margin-bottom: 20px;
}

.cloudip-field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.cloudip-license-key-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cloudip-license-key {
    flex: 1;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 14px 16px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: #1E293B;
    word-break: break-all;
}

.cloudip-copy-btn {
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
}

.cloudip-copy-btn:hover {
    background: #2563EB;
}

/* ================================================
   LIFECYCLE PROGRESS
   ================================================ */

.cloudip-lifecycle {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.cloudip-lifecycle-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cloudip-lifecycle-step {
    flex: 1;
    text-align: center;
}

.cloudip-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 20px;
    transition: all 0.3s;
}

.cloudip-step-icon.pending {
    background: #F3F4F6;
    border: 2px solid #D1D5DB;
    color: #9CA3AF;
}

.cloudip-step-icon.current {
    background: #DBEAFE;
    border: 2px solid #3B82F6;
    color: #2563EB;
    animation: cloudip-pulse 2s infinite;
}

.cloudip-step-icon.complete {
    background: #D1FAE5;
    border: 2px solid #10B981;
    color: #059669;
}

.cloudip-step-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6B7280;
}

.cloudip-step-label.active {
    color: #1E293B;
}

.cloudip-lifecycle-arrow {
    color: #D1D5DB;
    font-size: 24px;
    padding: 0 8px;
}

@keyframes cloudip-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

/* ================================================
   DEVICE INFO (When Activated)
   ================================================ */

.cloudip-device-info {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.cloudip-device-title {
    color: #166534;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.cloudip-device-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.cloudip-device-item label {
    font-size: 10px;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.cloudip-device-item span {
    font-size: 14px;
    color: #1E293B;
    font-weight: 500;
}

/* ================================================
   ACTION BUTTONS
   ================================================ */

.cloudip-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.cloudip-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.cloudip-btn-primary {
    background: #3B82F6;
    color: white;
}

.cloudip-btn-primary:hover {
    background: #2563EB;
    color: white;
}

.cloudip-btn-success {
    background: #10B981;
    color: white;
}

.cloudip-btn-success:hover {
    background: #059669;
    color: white;
}

.cloudip-btn-warning {
    background: #F59E0B;
    color: white;
}

.cloudip-btn-warning:hover {
    background: #D97706;
    color: white;
}

.cloudip-btn-danger {
    background: #EF4444;
    color: white;
}

.cloudip-btn-danger:hover {
    background: #DC2626;
    color: white;
}

.cloudip-action-hint {
    color: #6B7280;
    font-size: 13px;
}

/* ================================================
   HELP BOX
   ================================================ */

.cloudip-help {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.cloudip-help-title {
    color: #1E40AF;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.cloudip-help-content {
    color: #3B82F6;
    font-size: 14px;
    line-height: 1.6;
}

.cloudip-help-content ol {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.cloudip-help-content li {
    margin-bottom: 4px;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 768px) {
    .cloudip-license-header {
        flex-direction: column;
        text-align: center;
    }
    
    .cloudip-lifecycle-steps {
        flex-direction: column;
        gap: 16px;
    }
    
    .cloudip-lifecycle-arrow {
        transform: rotate(90deg);
    }
    
    .cloudip-device-grid {
        grid-template-columns: 1fr;
    }
    
    .cloudip-license-key-box {
        flex-direction: column;
    }
    
    .cloudip-copy-btn {
        width: 100%;
        justify-content: center;
    }
}
